mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 06:18:42 -05:00
Add new config var for the data gateway url
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user