aboutsummaryrefslogtreecommitdiff
path: root/cgit/nginx/conf.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cgit/nginx/conf.d/default.conf9
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;