From 4ef8ae229093d0bd008d199802a4de69fbe07687 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Mon, 14 Dec 2020 11:21:35 +0100 Subject: [PATCH] Revert "remove duplicate STORAGE_FRONTEND_PUBLIC_URL" This reverts commit 21723b8040364a877823653e6cdefdf3fc723552. --- storage/pkg/flagset/gateway.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/storage/pkg/flagset/gateway.go b/storage/pkg/flagset/gateway.go index ca3b16d5b7..7180e7af62 100644 --- a/storage/pkg/flagset/gateway.go +++ b/storage/pkg/flagset/gateway.go @@ -139,6 +139,13 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag { Destination: &cfg.Reva.StorageRegistry.HomeProvider, }, + &cli.StringFlag{ + Name: "public-url", + Value: "https://localhost:9200", + Usage: "URL to use for the storage service", + EnvVars: []string{"STORAGE_FRONTEND_PUBLIC_URL"}, + Destination: &cfg.Reva.Frontend.PublicURL, + }, &cli.StringFlag{ Name: "datagateway-url", Value: "https://localhost:9200/data",