Merge pull request #2965 from owncloud/spaces-capability-configurable
Make the project spaces capability configurable
This commit is contained in:
4 files changed
+9
-2
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
Enhancement: Add spaces capability
|
Enhancement: Add spaces capability
|
||||||
|
|
||||||
We've added the spaces capability with version 0.0.1 and enabled set to true.
|
We've added the spaces capability with version 0.0.1 and enabled defaulting to true.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/2931
|
https://github.com/owncloud/ocis/pull/2931
|
||||||
https://github.com/cs3org/reva/pull/2015
|
https://github.com/cs3org/reva/pull/2015
|
||||||
|
https://github.com/owncloud/ocis/pull/2965
|
||||||
@@ -294,7 +294,7 @@ func frontendConfigFromStruct(c *cli.Context, cfg *config.Config, filesCfg map[s
|
|||||||
},
|
},
|
||||||
"spaces": map[string]interface{}{
|
"spaces": map[string]interface{}{
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"enabled": true,
|
"enabled": cfg.Reva.Frontend.ProjectSpaces,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"version": map[string]interface{}{
|
"version": map[string]interface{}{
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ type FrontendPort struct {
|
|||||||
ArchiverPrefix string `ocisConfig:"archiver_prefix"`
|
ArchiverPrefix string `ocisConfig:"archiver_prefix"`
|
||||||
DatagatewayPrefix string `ocisConfig:"data_gateway_prefix"`
|
DatagatewayPrefix string `ocisConfig:"data_gateway_prefix"`
|
||||||
Favorites bool `ocisConfig:"favorites"`
|
Favorites bool `ocisConfig:"favorites"`
|
||||||
|
ProjectSpaces bool `ocisConfig:"project_spaces"`
|
||||||
OCDavInsecure bool `ocisConfig:"ocdav_insecure"`
|
OCDavInsecure bool `ocisConfig:"ocdav_insecure"`
|
||||||
OCDavPrefix string `ocisConfig:"ocdav_prefix"`
|
OCDavPrefix string `ocisConfig:"ocdav_prefix"`
|
||||||
OCSPrefix string `ocisConfig:"ocs_prefix"`
|
OCSPrefix string `ocisConfig:"ocs_prefix"`
|
||||||
@@ -815,6 +816,10 @@ func structMappings(cfg *Config) []shared.EnvBinding {
|
|||||||
EnvVars: []string{"STORAGE_FRONTEND_FAVORITES"},
|
EnvVars: []string{"STORAGE_FRONTEND_FAVORITES"},
|
||||||
Destination: &cfg.Reva.Frontend.Favorites,
|
Destination: &cfg.Reva.Frontend.Favorites,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
EnvVars: []string{"STORAGE_FRONTEND_PROJECT_SPACES"},
|
||||||
|
Destination: &cfg.Reva.Frontend.ProjectSpaces,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
EnvVars: []string{"STORAGE_FRONTEND_OCDAV_PREFIX"},
|
EnvVars: []string{"STORAGE_FRONTEND_OCDAV_PREFIX"},
|
||||||
Destination: &cfg.Reva.Frontend.OCDavPrefix,
|
Destination: &cfg.Reva.Frontend.OCDavPrefix,
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ func DefaultConfig() *Config {
|
|||||||
ArchiverPrefix: "archiver",
|
ArchiverPrefix: "archiver",
|
||||||
DatagatewayPrefix: "data",
|
DatagatewayPrefix: "data",
|
||||||
Favorites: false,
|
Favorites: false,
|
||||||
|
ProjectSpaces: true,
|
||||||
OCDavInsecure: false, // true?
|
OCDavInsecure: false, // true?
|
||||||
OCDavPrefix: "",
|
OCDavPrefix: "",
|
||||||
OCSPrefix: "ocs",
|
OCSPrefix: "ocs",
|
||||||
|
|||||||
Reference in new issue
Block a user