Make copr-dist-git serve smart-git and backend use it

This commit is contained in:
Patrick Uiterwijk 2015-10-31 23:34:51 +00:00
parent 3bf2e05c1b
commit 79e285bea0
3 changed files with 10 additions and 2 deletions

View file

@ -83,7 +83,7 @@ keygen_host={{ keygen_host }}
# minimum age for builds to be pruned
prune_days=14
dist_git_url=http://{{ dist_git_base_url }}/cgit
dist_git_url=http://{{ dist_git_base_url }}/git
[builder]
# default is 1800

View file

@ -0,0 +1,7 @@
SetEnv GIT_PROJECT_ROOT /var/lib/dist-git/git/rpms
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
<Directory /usr/libexec/git-core>
Options +ExecCGI
Require all granted
</Directory>

View file

@ -54,11 +54,12 @@
- command: 'git config --global user.name "Copr dist git"'
- name: install config for httpd to serve lookaside openly
- name: install httpd config to serve lookaside and smart-git
copy: src="httpd/{{ item }}" dest="/etc/httpd/conf.d/dist-git/{{ item }}"
with_items:
- lookaside.conf
- lookaside-copr.conf
- git-smart-http.conf
tags:
- config
notify: