diff --git a/roles/pagure/frontend/templates/pagure.conf b/roles/pagure/frontend/templates/pagure.conf index 7193920f9c..bc37163e61 100644 --- a/roles/pagure/frontend/templates/pagure.conf +++ b/roles/pagure/frontend/templates/pagure.conf @@ -1,5 +1,18 @@ Alias /static /usr/lib/python2.7/site-packages/pagure/static/ +SetEnv GIT_PROJECT_ROOT /srv/git/repositories + +AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/git/repositories/$1 +AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/git/repositories/$1 +ScriptAliasMatch \ + "(?x)^/(.*/(HEAD | \ + info/refs | \ + objects/info/[^/]+ | \ + git-(upload|receive)-pack))$" \ + /usr/libexec/git-core/git-http-backend/$1 + + + WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300 WSGISocketPrefix run/wsgi