X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c95f99098fa6c6acbfa82d4b6cbc6015eb6e39..386e1eefaac2021805f73732b10e9f543c221593:/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()