ansible/roles/git/server/files/git.conf
Timo Makinen 58de72e85a git: Convert to CentOS 8 and Apache
* Update git hosts to CentOS 8
 * Drop nslscd and use sssd instead
 * Change nginx to apache for future GSSAPI support
 * Fix SELinux contexts from git data directory
2021-03-17 21:29:47 +00:00

24 lines
621 B
Text

SetEnv GIT_PROJECT_ROOT /srv/git
SetEnv GIT_HTTP_EXPORT_ALL
Alias /static/ /var/www/git/static/
#AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/git/$1
#AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/git/$1
<Directory /usr/libexec/git-core>
Require all granted
</Directory>
ScriptAliasMatch \
"(?x)^/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/usr/libexec/git-core/git-http-backend/$1
ScriptAlias /gitweb.cgi /var/www/git/gitweb.cgi
<Location />
SetEnv GITWEB_CONFIG /etc/gitweb.conf
DirectoryIndex gitweb.cgi
</Location>