Merge pull request #3891 from owncloud/addmissingdefaultconfig

add missing default config
This commit is contained in:
Jörn Friedrich Dreyer authored and GitHub committed 2022-05-31 11:19:27 +00:00
commit 45522e4fea
1 file changed
+8 -2
@@ -33,7 +33,7 @@ func DefaultConfig() *config.Config {
Reva: &config.Reva{ Reva: &config.Reva{
Address: "127.0.0.1:9142", Address: "127.0.0.1:9142",
}, },
UserSharingDriver: "json", //"cs3", UserSharingDriver: "json", // TODO use "cs3", see https://github.com/owncloud/ocis/pull/3697
UserSharingDrivers: config.UserSharingDrivers{ UserSharingDrivers: config.UserSharingDrivers{
JSON: config.UserSharingJSONDriver{ JSON: config.UserSharingJSONDriver{
File: filepath.Join(defaults.BaseDataPath(), "storage", "shares.json"), File: filepath.Join(defaults.BaseDataPath(), "storage", "shares.json"),
@@ -42,8 +42,14 @@ func DefaultConfig() *config.Config {
ProviderAddr: "127.0.0.1:9215", // metadata storage ProviderAddr: "127.0.0.1:9215", // metadata storage
SystemUserIDP: "internal", SystemUserIDP: "internal",
}, },
OwnCloudSQL: config.UserSharingOwnCloudSQLDriver{
DBUsername: "owncloud",
DBHost: "mysql",
DBPort: 3306,
DBName: "owncloud",
},
}, },
PublicSharingDriver: "json", // "cs3", PublicSharingDriver: "json", // TODO use "cs3", see https://github.com/owncloud/ocis/pull/3697
PublicSharingDrivers: config.PublicSharingDrivers{ PublicSharingDrivers: config.PublicSharingDrivers{
JSON: config.PublicSharingJSONDriver{ JSON: config.PublicSharingJSONDriver{
File: filepath.Join(defaults.BaseDataPath(), "storage", "publicshares.json"), File: filepath.Join(defaults.BaseDataPath(), "storage", "publicshares.json"),