allow configuring storage registry by envvars

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-10-20 15:26:02 +02:00
parent 67365bd7a2
commit 026c357256
2 changed files with 8 additions and 3 deletions

View 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

View File

@@ -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."`
}