summaryrefslogtreecommitdiff
path: root/etc/nginx/nginx.conf
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-22 11:51:54 +0000
committerXiao Pan <xyz@flylightning.xyz>2025-07-22 11:51:54 +0000
commitafc35d4ab0834fa7d71a85bbb4394a415067aa2a (patch)
tree8ee4f5993ff192e662c3dbd83ef7a4cda3b00c14 /etc/nginx/nginx.conf
parent01fd2d61adce0e4433f0b25c6042d6311422ebad (diff)
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 addca
Diffstat (limited to 'etc/nginx/nginx.conf')
-rw-r--r--etc/nginx/nginx.conf2
1 files changed, 1 insertions, 1 deletions
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;
}