Make copr-dist-git serve smart-git and backend use it
This commit is contained in:
parent
3bf2e05c1b
commit
79e285bea0
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
7
roles/copr/dist_git/files/httpd/git-smart-http.conf
Normal file
7
roles/copr/dist_git/files/httpd/git-smart-http.conf
Normal 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>
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue