fix default storage config

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-01-17 10:12:12 +01:00
parent 25a68c9321
commit 46ab6037b7
3 changed files with 21 additions and 1 deletions
+10
View File
@@ -256,5 +256,15 @@ func StorageHomeDataWithConfig(cfg *config.Config) []cli.Flag {
EnvVar: "REVA_STORAGE_OWNCLOUD_DATADIR",
Destination: &cfg.Reva.Storages.OwnCloud.Datadirectory,
},
// Gateway
&cli.StringFlag{
Name: "gateway-url",
Value: "localhost:9142",
Usage: "URL to use for the reva gateway service",
EnvVar: "REVA_GATEWAY_URL",
Destination: &cfg.Reva.Gateway.URL,
},
}
}
+1 -1
View File
@@ -167,7 +167,7 @@ func StorageOCWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.StringFlag{
Name: "data-server-url",
Value: "",
Value: "http://localhost:9164/data",
Usage: "data server url",
EnvVar: "REVA_STORAGE_OC_DATA_SERVER_URL",
Destination: &cfg.Reva.StorageOC.DataServerURL,
+10
View File
@@ -256,5 +256,15 @@ func StorageOCDataWithConfig(cfg *config.Config) []cli.Flag {
EnvVar: "REVA_STORAGE_OWNCLOUD_DATADIR",
Destination: &cfg.Reva.Storages.OwnCloud.Datadirectory,
},
// Gateway
&cli.StringFlag{
Name: "gateway-url",
Value: "localhost:9142",
Usage: "URL to use for the reva gateway service",
EnvVar: "REVA_GATEWAY_URL",
Destination: &cfg.Reva.Gateway.URL,
},
}
}