diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-06-20 21:52:30 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-06-20 21:52:30 +0200 |
commit | ce6ff9c1ad24b63851b736021e898da7e287d146 (patch) | |
tree | e9708cc4788f2b9e35c6c93ca6bfbfe2fc44932a /cgit/apache2 | |
parent | 0096a166c05da05b471123c5dce3d15a053ba642 (diff) |
update cgit config, to strip .git suffix from projects, and parse README.md with cmark
Diffstat (limited to 'cgit/apache2')
-rw-r--r-- | cgit/apache2/conf-available/local-cgit.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cgit/apache2/conf-available/local-cgit.conf b/cgit/apache2/conf-available/local-cgit.conf index 56d81c5..27a6c13 100644 --- a/cgit/apache2/conf-available/local-cgit.conf +++ b/cgit/apache2/conf-available/local-cgit.conf @@ -10,6 +10,9 @@ Alias /cgit-css/ /usr/share/cgit/ Alias /favicon.ico /usr/share/cgit/favicon.ico Alias /robots.txt /usr/share/cgit/robots.txt -<LocationMatch ^/(?!cgit-css/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)> +# 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/)> ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git </LocationMatch> |