From ce6ff9c1ad24b63851b736021e898da7e287d146 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 20 Jun 2020 21:52:30 +0200 Subject: update cgit config, to strip .git suffix from projects, and parse README.md with cmark --- cgit/apache2/conf-available/local-cgit.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cgit/apache2/conf-available') 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 - +# this requires cgit config: enable-index-links=1 +RedirectMatch permanent ^/([^./]+)\.git(/.*) /$1$2 + + ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git -- cgit v1.2.3