Merge pull request #1627 from owncloud/make_reva_ocis_service_user_uuid_configurable
make reva ocis storage driver uuid configurable
This commit is contained in:
3 files changed
+14
-1
No files matched your search
@@ -91,7 +91,7 @@ func drivers(cfg *config.Config) map[string]interface{} {
|
|||||||
"user_layout": cfg.Reva.Storages.Common.UserLayout,
|
"user_layout": cfg.Reva.Storages.Common.UserLayout,
|
||||||
"treetime_accounting": true,
|
"treetime_accounting": true,
|
||||||
"treesize_accounting": true,
|
"treesize_accounting": true,
|
||||||
"owner": "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad", // the accounts service system account uuid
|
"owner": cfg.Reva.Storages.OCIS.ServiceUserUUID, // the accounts service system account uuid
|
||||||
},
|
},
|
||||||
"s3": map[string]interface{}{
|
"s3": map[string]interface{}{
|
||||||
"region": cfg.Reva.Storages.S3.Region,
|
"region": cfg.Reva.Storages.S3.Region,
|
||||||
|
|||||||
@@ -165,6 +165,7 @@ type StorageConfig struct {
|
|||||||
OwnCloud DriverOwnCloud
|
OwnCloud DriverOwnCloud
|
||||||
S3 DriverS3
|
S3 DriverS3
|
||||||
Common DriverCommon
|
Common DriverCommon
|
||||||
|
OCIS DriverOCIS
|
||||||
// TODO checksums ... figure out what that is supposed to do
|
// TODO checksums ... figure out what that is supposed to do
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,6 +243,11 @@ type DriverEOS struct {
|
|||||||
GatewaySVC string
|
GatewaySVC string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DriverOCIS defines the available oCIS storage driver configuration.
|
||||||
|
type DriverOCIS struct {
|
||||||
|
ServiceUserUUID string
|
||||||
|
}
|
||||||
|
|
||||||
// DriverOwnCloud defines the available ownCloud storage driver configuration.
|
// DriverOwnCloud defines the available ownCloud storage driver configuration.
|
||||||
type DriverOwnCloud struct {
|
type DriverOwnCloud struct {
|
||||||
DriverCommon
|
DriverCommon
|
||||||
|
|||||||
@@ -30,5 +30,12 @@ func DriverOCISWithConfig(cfg *config.Config) []cli.Flag {
|
|||||||
EnvVars: []string{"STORAGE_DRIVER_OCIS_LAYOUT"},
|
EnvVars: []string{"STORAGE_DRIVER_OCIS_LAYOUT"},
|
||||||
Destination: &cfg.Reva.Storages.Common.UserLayout,
|
Destination: &cfg.Reva.Storages.Common.UserLayout,
|
||||||
},
|
},
|
||||||
|
&cli.StringFlag{
|
||||||
|
Name: "service-user-uuid",
|
||||||
|
Value: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
|
||||||
|
Usage: "uuid of the internal service user",
|
||||||
|
EnvVars: []string{"STORAGE_DRIVER_OCIS_SERVICE_USER_UUID"},
|
||||||
|
Destination: &cfg.Reva.Storages.OCIS.ServiceUserUUID,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user