1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 // arvados-git-httpd provides authenticated access to Arvados-hosted
8 // See http://doc.arvados.org/install/install-arv-git-httpd.html.
16 "github.com/ghodss/yaml"
21 c.Client.APIHost = "zzzzz.arvadosapi.com:443"
22 exampleConfigFile, err := yaml.Marshal(c)
26 fmt.Fprintf(os.Stderr, `
28 arvados-git-httpd provides authenticated access to Arvados-hosted git
31 See http://doc.arvados.org/install/install-arv-git-httpd.html.
33 Usage: arvados-git-httpd [-config path/to/arvados/git-httpd.yml]
38 fmt.Fprintf(os.Stderr, `
45 Address (or address:port) of the Arvados API endpoint.
49 Unused. Normally empty, or omitted entirely.
53 True if your Arvados API endpoint uses an unverifiable SSL/TLS
58 Path to git or gitolite-shell executable. Each authenticated
59 request will execute this program with the single argument
64 Path to Gitolite's home directory. If a non-empty path is given,
65 the CGI environment will be set up to support the use of
66 gitolite-shell as a GitCommand: for example, if GitoliteHome is
67 "/gh", then the CGI environment will have GITOLITE_HTTP_HOME=/gh,
68 PATH=$PATH:/gh/bin, and GL_BYPASS_ACCESS_CHECKS=1.
72 Local port to listen on. Can be "address:port" or ":port", where
73 "address" is a host IP address or name and "port" is a port number
78 Path to git repositories.