make service user configurable

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2022-03-07 11:55:33 +01:00
parent 7bfeb162bc
commit f4619dbb47
5 changed files with 6 additions and 4 deletions
+1
View File
@@ -40,5 +40,6 @@ type Metadata struct {
StorageAddress string `ocisConfig:"storage_addr" env:"STORAGE_GRPC_ADDR"`
ServiceUserID string `ocisConfig:"service_user_id" env:"METADATA_SERVICE_USER_UUID"`
ServiceUserIDP string `ocisConfig:"service_user_idp" env:"METADATA_SERVICE_USER_IDP"`
MachineAuthAPIKey string `ocisConfig:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY"`
}
+1
View File
@@ -46,6 +46,7 @@ func DefaultConfig() *Config {
GatewayAddress: "127.0.0.1:9142",
StorageAddress: "127.0.0.1:9215",
ServiceUserID: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
ServiceUserIDP: "localhost:9200",
MachineAuthAPIKey: "change-me-please",
},
}