From af4148923e46b1a552115af3191b8036edeb8d2b Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Tue, 4 Feb 2020 12:42:20 +0100 Subject: [PATCH] use flags to configure the server --- pkg/command/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/command/server.go b/pkg/command/server.go index 7807bd8628..57724a8fee 100644 --- a/pkg/command/server.go +++ b/pkg/command/server.go @@ -41,16 +41,19 @@ func Server(cfg *config.Config) *cli.Command { Name: "name", Value: "accounts", Destination: &cfg.Server.Name, + EnvVars: []string{"OCIS_ACCOUNTS_NAME"}, }, &cli.StringFlag{ Name: "namespace", Value: "com.owncloud", Destination: &cfg.Server.Namespace, + EnvVars: []string{"OCIS_ACCOUNTS_NAMESPACE"}, }, &cli.StringFlag{ Name: "address", Value: "localhost:9999", Destination: &cfg.Server.Address, + EnvVars: []string{"OCIS_ACCOUNTS_ADDRESS"}, }, }, Action: func(c *cli.Context) error {