X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/53a9aa7651a9fed6d88f4ece0f8d4cd10a77a63f..aa552a3337c1a63d1638c39cb01ab03b0b9009cc:/services/keep-web/main.go diff --git a/services/keep-web/main.go b/services/keep-web/main.go index df8a0b5c07..5f4cb50904 100644 --- a/services/keep-web/main.go +++ b/services/keep-web/main.go @@ -62,6 +62,8 @@ func main() { "Only serve attachments at the given `host:port`"+deprecated) flag.BoolVar(&cfg.TrustAllContent, "trust-all-content", false, "Serve non-public content from a single origin. Dangerous: read docs before using!"+deprecated) + dumpConfig := flag.Bool("dump-config", false, + "write current configuration to stdout and exit") flag.Usage = usage flag.Parse() @@ -78,6 +80,10 @@ func main() { cfg.AnonymousTokens = []string{os.Getenv("ARVADOS_API_TOKEN")} } + if *dumpConfig { + log.Fatal(config.DumpAndExit(cfg)) + } + os.Setenv("ARVADOS_API_HOST", cfg.Client.APIHost) srv := &server{Config: cfg} if err := srv.Start(); err != nil {