From 714cb1569999b4a51c8bfd24b17736f82f64100c Mon Sep 17 00:00:00 2001 From: RATDAD Date: Fri, 19 Dec 2025 02:13:32 -0500 Subject: Ensured OOB syntax highlighting and markdown formatting. --- etc/cgitrc | 6 ++++-- etc/httpd/conf/httpd.conf | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/cgitrc b/etc/cgitrc index c47986c..7049034 100644 --- a/etc/cgitrc +++ b/etc/cgitrc @@ -7,7 +7,9 @@ # Global Settings robots=noindex, nofollow snapshots=tar.gz tar.bz2 zip -source-filter=/opt/highlight.sh +source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py +about-filter=/usr/local/lib/cgit/filters/about-formatting.py +commit-filter=/usr/local/lib/cgit/fiters/commit-links.sh # Assets css=/cgit.css @@ -73,4 +75,4 @@ readme=:install # Don't change. virtual-root=/ -scan-path=/srv/git \ No newline at end of file +scan-path=/srv/git diff --git a/etc/httpd/conf/httpd.conf b/etc/httpd/conf/httpd.conf index 675241d..5d20569 100644 --- a/etc/httpd/conf/httpd.conf +++ b/etc/httpd/conf/httpd.conf @@ -74,10 +74,10 @@ DocumentRoot "/srv/www/htdocs/cgit" AllowOverride All RewriteEngine On - + # Hard stop: never rewrite Git HTTP requests. RewriteRule ^.+/(git-upload-pack|git-receive-pack|info/refs)$ - [END] - + # Serve static files directly. RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [END] -- cgit v1.2.3-70-g09d2