add graph

This commit is contained in:
A.Unger
2021-11-04 13:50:42 +01:00
parent b61887aca1
commit cfe1ac30af
7 changed files with 389 additions and 241 deletions
+1 -3
View File
@@ -32,9 +32,7 @@ func Server(cfg *config.Config) *cli.Command {
// When running on single binary mode the before hook from the root command won't get called. We manually
// call this before hook from ocis command, so the configuration can be loaded.
if !cfg.Supervised {
return ParseConfig(ctx, cfg)
}
return ParseConfig(ctx, cfg)
if origins := ctx.StringSlice("cors-allowed-origins"); len(origins) != 0 {
cfg.HTTP.CORS.AllowedOrigins = origins
}