summaryrefslogtreecommitdiff
path: root/etc/nginx
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-02-25 12:45:55 +0000
committerXiao Pan <gky44px1999@gmail.com>2024-02-25 12:51:16 +0000
commitaee52406b4409c1b3cfc717ed777688ab568138f (patch)
treef764a03dce7fbd1514bef4116901990122d0cf18 /etc/nginx
parent95adecc3706c7e6b1c7871c2c978fb831f5124de (diff)
cgit syntax highlight using mycgit.css
mycgit.css import cgit.css and highlight.css. Because cgit.css is not a pacman backup file and it will be overwritten once cgit update. I can also update highlight.css automatically via pacman hook or `upd`. Also, I think `highlight` not using `--inline-css` maybe is a better way performance wise and more elegant (less messy generated html source code).
Diffstat (limited to 'etc/nginx')
-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 fc7b065b..17b23af5 100644
--- a/etc/nginx/nginx.conf
+++ b/etc/nginx/nginx.conf
@@ -164,7 +164,7 @@ http {
ssl_certificate_key /etc/nginx/flylightning.key;
# Serve static files with nginx
- location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt) {
+ location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt|highlight.css|mycgit.css) {
root /usr/share/webapps/cgit;
expires 30d;
}