aboutsummaryrefslogtreecommitdiff
path: root/cgit/nginx
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-07-05 10:52:25 +0530
committerAkshay Nair <phenax5@gmail.com>2026-07-05 14:41:55 +0530
commiteca86870bf10c064a9f561249491f03c6e750a86 (patch)
tree95676411d6f95babd1fdf5231c6fecc44f94cab9 /cgit/nginx
parent2cd9a4039c0c5f524df0a33605c9baef1f57917e (diff)
downloadbacchus-remote-eca86870bf10c064a9f561249491f03c6e750a86.tar.gz
bacchus-remote-eca86870bf10c064a9f561249491f03c6e750a86.zip
Add fork/set-description git commands + optimizations
Diffstat (limited to 'cgit/nginx')
-rw-r--r--cgit/nginx/conf.d/default.conf10
-rw-r--r--cgit/nginx/nginx.conf4
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;