Merge pull request #1070 from owncloud/remove_duplicate_STORAGE_FRONTEND_PUBLIC_URL

add note to duplicate STORAGE_FRONTEND_PUBLIC_URL
This commit is contained in:
Willy Kloucek
2020-12-14 15:53:09 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"STORAGE_FRONTEND_HTTP_ADDR"},
Destination: &cfg.Reva.Frontend.HTTPAddr,
},
// please note that STORAGE_FRONTEND_PUBLIC_URL is also defined in
// storage/pkg/flagset/gateway.go because this setting may be consumed
// by both the gateway and frontend service
&cli.StringFlag{
Name: "public-url",
Value: "https://localhost:9200",

View File

@@ -139,6 +139,9 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag {
Destination: &cfg.Reva.StorageRegistry.HomeProvider,
},
// please note that STORAGE_FRONTEND_PUBLIC_URL is also defined in
// storage/pkg/flagset/frontend.go because this setting may be consumed
// by both the gateway and frontend service
&cli.StringFlag{
Name: "public-url",
Value: "https://localhost:9200",