--- layout: default navsection: installguide title: Install Git server ... 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. By convention, we use the following hostname for the git service:
~$ sudo apt-get install git arvados-git-httpd
~$ sudo yum install git arvados-git-httpd
~$ arvados-git-httpd -h
Usage of arv-git-httpd:
-address="0.0.0.0:80": Address to listen on, "host:port".
-git-command="/usr/bin/git": Path to git executable. Each authenticated request will execute this program with a single argument, "http-backend".
-repo-root="/path/to/cwd": Path to git repositories.
~$ git http-backend
Status: 500 Internal Server Error
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
fatal: No REQUEST_METHOD from server
export ARVADOS_API_HOST=uuid_prefix.your.domain
exec sudo -u git arvados-git-httpd -address=:9001 -git-command="$(which git)" -repo-root=/var/lib/arvados/git 2>&1
git_http_base: git.uuid_prefix.your.domain