mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-18 19:12:35 -05:00
42 lines
867 B
Go
42 lines
867 B
Go
package config
|
|
|
|
import (
|
|
"path"
|
|
|
|
"github.com/owncloud/ocis/ocis-pkg/config/defaults"
|
|
)
|
|
|
|
func DefaultConfig() *Config {
|
|
return &Config{
|
|
Debug: Debug{
|
|
Addr: "127.0.0.1:9189",
|
|
Token: "",
|
|
Pprof: false,
|
|
Zpages: false,
|
|
},
|
|
GRPC: GRPC{
|
|
Addr: "127.0.0.1:9185",
|
|
Namespace: "com.owncloud.api",
|
|
},
|
|
Service: Service{
|
|
Name: "thumbnails",
|
|
},
|
|
Tracing: Tracing{
|
|
Enabled: false,
|
|
Type: "jaeger",
|
|
Endpoint: "",
|
|
Collector: "",
|
|
},
|
|
Thumbnail: Thumbnail{
|
|
Resolutions: []string{"16x16", "32x32", "64x64", "128x128", "1920x1080", "3840x2160", "7680x4320"},
|
|
FileSystemStorage: FileSystemStorage{
|
|
RootDirectory: path.Join(defaults.BaseDataPath(), "thumbnails"),
|
|
},
|
|
WebdavAllowInsecure: true,
|
|
RevaGateway: "127.0.0.1:9142",
|
|
WebdavNamespace: "/home",
|
|
CS3AllowInsecure: false,
|
|
},
|
|
}
|
|
}
|