diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-06-21 14:08:09 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-06-21 14:13:18 +0200 |
commit | 2cbc4ce1506989c116ee418c28c7c283627750eb (patch) | |
tree | c6bf74460387a5196fab6d5cb54fcef21486369a /cgit/apache2 | |
parent | 85371907d01c72402464be649eb12eb4f547f9a6 (diff) |
cgit: use local forked CSS, with compact lists (needed by Ocnext commit...)
Diffstat (limited to 'cgit/apache2')
-rw-r--r-- | cgit/apache2/conf-available/local-cgit.conf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cgit/apache2/conf-available/local-cgit.conf b/cgit/apache2/conf-available/local-cgit.conf index 27a6c13..12a1850 100644 --- a/cgit/apache2/conf-available/local-cgit.conf +++ b/cgit/apache2/conf-available/local-cgit.conf @@ -6,13 +6,21 @@ AddDefaultCharset UTF-8 Require all granted </Directory> +<Directory /etc/local-COMMON/cgit/web/> + Options None + AllowOverride None + Require all granted +</Directory> + Alias /cgit-css/ /usr/share/cgit/ Alias /favicon.ico /usr/share/cgit/favicon.ico Alias /robots.txt /usr/share/cgit/robots.txt +Alias /cgit-local/ /etc/local-COMMON/cgit/web/ + # this requires cgit config: enable-index-links=1 RedirectMatch permanent ^/([^./]+)\.git(/.*) /$1$2 -<LocationMatch ^/(?![^./]+\.git/|cgit-css/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)> +<LocationMatch ^/(?![^./]+\.git/|cgit-css/.*|cgit-local/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)> ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git </LocationMatch> |