diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-07-05 14:38:46 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-07-05 16:15:17 +0530 |
| commit | d2fd01c0181fd557a1750d8c36fbe1394431766c (patch) | |
| tree | 137f06d079b00960c28aecaf84f53cd159a0fbcc /cgit/nginx/conf.d/default.conf | |
| parent | eca86870bf10c064a9f561249491f03c6e750a86 (diff) | |
| download | bacchus-remote-d2fd01c0181fd557a1750d8c36fbe1394431766c.tar.gz bacchus-remote-d2fd01c0181fd557a1750d8c36fbe1394431766c.zip | |
Install cgit from source
Diffstat (limited to 'cgit/nginx/conf.d/default.conf')
| -rw-r--r-- | cgit/nginx/conf.d/default.conf | 9 |
1 files changed, 7 insertions, 2 deletions
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; |
