split **/pkg/config/config.go up to multiple files

This commit is contained in:
Willy Kloucek
2022-01-07 16:04:52 +00:00
committed by Jörn Friedrich Dreyer
parent 6990e7d660
commit a13df3dcf7
121 changed files with 2049 additions and 1940 deletions
+41
View File
@@ -0,0 +1,41 @@
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: "",
Service: "thumbnails",
},
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",
CS3AllowInsecure: false,
},
}
}