diff --git a/pkg/command/gateway.go b/pkg/command/gateway.go index e8f649881..08d8201de 100644 --- a/pkg/command/gateway.go +++ b/pkg/command/gateway.go @@ -108,7 +108,7 @@ func Gateway(cfg *config.Config) *cli.Command { "link_grants_file": cfg.Reva.Gateway.LinkGrants, // other "disable_home_creation_on_login": cfg.Reva.Gateway.DisableHomeCreationOnLogin, - "datagateway": urlWithScheme(cfg.Reva.Frontend.URL), + "datagateway": urlWithScheme(cfg.Reva.DataGateway.URL), "transfer_shared_secret": cfg.Reva.TransferSecret, "transfer_expires": cfg.Reva.TransferExpires, }, diff --git a/pkg/config/config.go b/pkg/config/config.go index 66ac115d9..942b48b76 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -229,8 +229,9 @@ type Reva struct { LDAP LDAP OCDav OCDav Storages StorageConfig - // Ports are used configure which services to start on which port + // Ports are used to configure which services to start on which port Frontend Port + DataGateway Port Gateway Gateway Users Users AuthBasic Port diff --git a/pkg/flagset/gateway.go b/pkg/flagset/gateway.go index 7a5c23ecc..73b59be37 100644 --- a/pkg/flagset/gateway.go +++ b/pkg/flagset/gateway.go @@ -193,6 +193,13 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag { EnvVars: []string{"REVA_FRONTEND_URL"}, Destination: &cfg.Reva.Frontend.URL, }, + &cli.StringFlag{ + Name: "datagateway-url", + Value: "https://localhost:9200/data", + Usage: "URL to use for the reva datagateway", + EnvVars: []string{"REVA_DATAGATEWAY_URL"}, + Destination: &cfg.Reva.DataGateway.URL, + }, &cli.StringFlag{ Name: "users-url", Value: "localhost:9144",