mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 20:29:54 -06:00
allow configuring storage registry by envvars
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
5
changelog/unreleased/storage-registry-envvar-config.md
Normal file
5
changelog/unreleased/storage-registry-envvar-config.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Enhancement: Allow configuring storage registry with envvars
|
||||
|
||||
Introduced new envvars to configure the storage registry in the gateway service
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7554
|
||||
@@ -76,9 +76,9 @@ type GRPCConfig struct {
|
||||
}
|
||||
|
||||
type StorageRegistry struct {
|
||||
Driver string `yaml:"driver"` // TODO: configure via env?
|
||||
Rules []string `yaml:"rules"` // TODO: configure via env?
|
||||
JSON string `yaml:"json"` // TODO: configure via env?
|
||||
Driver string `yaml:"driver" env:"GATEWAY_STORAGE_REGISTRY_DRIVER" desc:"The driver name of the storage registry to use"`
|
||||
Rules []string `yaml:"rules" env:"GATEWAY_STORAGE_REGISTRY_RULES" desc:"The rules for the storage registry"`
|
||||
JSON string `yaml:"json" env:"GATEWAY_STORAGE_REGISTRY_CONFIG_JSON" desc:"Additional configuration for the storage registry in json format"`
|
||||
StorageUsersMountID string `yaml:"storage_users_mount_id" env:"GATEWAY_STORAGE_USERS_MOUNT_ID" desc:"Mount ID of this storage. Admins can set the ID for the storage in this config option manually which is then used to reference the storage. Any reasonable long string is possible, preferably this would be an UUIDv4 format."`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user