From afc35d4ab0834fa7d71a85bbb4394a415067aa2a Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Tue, 22 Jul 2025 11:51:54 +0000 Subject: nginx.conf cgit add back favicon.ico because I no longer use cgit-pink and cgit has it, also add cgit.js which I maybe forgot to add --- etc/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index 4dc30020..4fad34f0 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -205,7 +205,7 @@ http { # - note: I don't think sed support ?: , because POSIX ERE and BRE doesn't seem to support ?: # - maybe improve a little bit performance by not storing things (not tested, also I did not read the source code) # Serve static files with nginx - location ~ ^/(?:cgit\.(?:css|png)|robots\.txt|highlight\.css|mycgit\.css)$ { + location ~ ^/(?:cgit\.(?:css|png|js)|robots\.txt|highlight\.css|mycgit\.css|favicon\.ico)$ { root /usr/share/webapps/cgit; expires 30d; } -- cgit v1.2.3-70-g09d2