diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-07-22 11:51:54 +0000 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-07-22 11:51:54 +0000 |
commit | afc35d4ab0834fa7d71a85bbb4394a415067aa2a (patch) | |
tree | 8ee4f5993ff192e662c3dbd83ef7a4cda3b00c14 | |
parent | 01fd2d61adce0e4433f0b25c6042d6311422ebad (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
-rw-r--r-- | etc/nginx/nginx.conf | 2 |
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; } |