diff options
Diffstat (limited to 'cgit/nginx')
| -rw-r--r-- | cgit/nginx/conf.d/default.conf | 10 | ||||
| -rw-r--r-- | cgit/nginx/nginx.conf | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/cgit/nginx/conf.d/default.conf b/cgit/nginx/conf.d/default.conf index a850744..7254ffa 100644 --- a/cgit/nginx/conf.d/default.conf +++ b/cgit/nginx/conf.d/default.conf @@ -3,15 +3,15 @@ server { server_name localhost; root /usr/share/webapps/cgit; - location / { - try_files $uri @cgit; - } - - location ~* ^.+(favicon.ico|robots.txt) { + location ~* ^.+(ediblemonad.+|favicon.ico|robots.txt) { root /usr/share/webapps/cgit; expires 30d; } + location / { + try_files $uri @cgit; + } + location @cgit { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi; diff --git a/cgit/nginx/nginx.conf b/cgit/nginx/nginx.conf index c5a713f..3642e30 100644 --- a/cgit/nginx/nginx.conf +++ b/cgit/nginx/nginx.conf @@ -1,6 +1,6 @@ user git; worker_processes auto; -error_log stderr crit; +error_log stderr info; pid /var/run/nginx.pid; events { @@ -18,7 +18,6 @@ http { open_file_cache_errors on; access_log off; - error_log stderr crit; sendfile on; sendfile_max_chunk 512k; @@ -59,7 +58,6 @@ http { server_tokens off; add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; - add_header X-XSS-Protection "1; mode=block"; client_body_buffer_size 128k; large_client_header_buffers 4 256k; |
