mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
Make copr-dist-git serve smart-git and backend use it
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user