3 navsection: installguide
4 title: Install Git server
7 The arvados-git-httpd server provides HTTP access to hosted git repositories, using Arvados authentication tokens instead of passwords. It is intended to be installed on the system where your git repositories are stored, and accessed through a web proxy that provides SSL support.
9 By convention, we use the following hostname for the git service:
12 table(table table-bordered table-condensed).
13 |git.@uuid_prefix@.your.domain|
16 This hostname should resolve from anywhere on the internet.
18 h2. Install arvados-git-httpd
20 On Debian-based systems:
23 <pre><code>~$ <span class="userinput">sudo apt-get install git arvados-git-httpd</span>
27 On Red Hat-based systems:
30 <pre><code>~$ <span class="userinput">sudo yum install git arvados-git-httpd</span>
34 Verify that @arvados-git-httpd@ and @git-http-backend@ are functional:
37 <pre><code>~$ <span class="userinput">arvados-git-httpd -h</span>
38 Usage of arv-git-httpd:
39 -address="0.0.0.0:80": Address to listen on, "host:port".
40 -git-command="/usr/bin/git": Path to git executable. Each authenticated request will execute this program with a single argument, "http-backend".
41 -repo-root="/path/to/cwd": Path to git repositories.
42 ~$ <span class="userinput">git http-backend</span>
43 Status: 500 Internal Server Error
44 Expires: Fri, 01 Jan 1980 00:00:00 GMT
46 Cache-Control: no-cache, max-age=0, must-revalidate
48 fatal: No REQUEST_METHOD from server
52 We recommend running @arvados-git-httpd@ under "runit":http://smarden.org/runit/ or something similar.
54 Your @run@ script should look something like this:
57 <pre><code>export ARVADOS_API_HOST=<span class="userinput">uuid_prefix</span>.your.domain
58 exec sudo -u git arvados-git-httpd -address=:9001 -git-command="$(which git)" -repo-root=<span class="userinput">/var/lib/arvados/git</span> 2>&1
62 h3. Set up a reverse proxy with SSL support
64 The arvados-git-httpd service will be accessible from anywhere on the internet, so we recommend using SSL for transport encryption.
66 This is best achieved by putting a reverse proxy with SSL support in front of arvados-git-httpd, running on port 443 and passing requests to arvados-git-httpd on port 9001 (or whatever port you chose in your run script).
68 h3. Tell the API server about the arvados-git-httpd service
70 In your API server's @config/application.yml@ file, add the following entry:
73 <pre><code>git_http_base: git.<span class="userinput">uuid_prefix.your.domain</span>