From d2fd01c0181fd557a1750d8c36fbe1394431766c Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 5 Jul 2026 14:38:46 +0530 Subject: Install cgit from source --- cgit/nginx/conf.d/default.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cgit/nginx/conf.d/default.conf') diff --git a/cgit/nginx/conf.d/default.conf b/cgit/nginx/conf.d/default.conf index 7254ffa..73db0db 100644 --- a/cgit/nginx/conf.d/default.conf +++ b/cgit/nginx/conf.d/default.conf @@ -3,18 +3,23 @@ server { server_name localhost; root /usr/share/webapps/cgit; - location ~* ^.+(ediblemonad.+|favicon.ico|robots.txt) { + location ~* ^/(ediblemonad/.+|favicon.ico|robots.txt) { root /usr/share/webapps/cgit; expires 30d; } + location ~* ^.+/plain/.+ { + try_files $uri @cgit; + expires 15d; + } + location / { try_files $uri @cgit; } location @cgit { include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi; + fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit-script/cgit.cgi; fastcgi_param PATH_INFO $uri; fastcgi_param QUERY_STRING $args; fastcgi_param HTTP_HOST $server_name; -- cgit v1.3.1