X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3..b02fc7b2227e923beb4d47daee7949c94b90da5f:/services/arv-git-httpd/main.go diff --git a/services/arv-git-httpd/main.go b/services/arv-git-httpd/main.go index bee02693ae..79a3eb3f7b 100644 --- a/services/arv-git-httpd/main.go +++ b/services/arv-git-httpd/main.go @@ -18,11 +18,12 @@ import ( // Server configuration type Config struct { - Client arvados.Client - Listen string - GitCommand string - RepoRoot string - GitoliteHome string + Client arvados.Client + Listen string + GitCommand string + RepoRoot string + GitoliteHome string + ManagementToken string } var theConfig = defaultConfig() @@ -49,6 +50,10 @@ func main() { cfgPath := flag.String("config", defaultCfgPath, "Configuration file `path`.") dumpConfig := flag.Bool("dump-config", false, "write current configuration to stdout and exit (useful for migrating from command line flags to config file)") + + flag.StringVar(&theConfig.ManagementToken, "management-token", theConfig.ManagementToken, + "Authorization token to be included in all health check requests.") + flag.Usage = usage flag.Parse()