diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-02-20 08:59:45 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-02-20 08:59:45 +0700 |
| commit | 9f4ee570e617be7d25b91264f60cdc8915fc9275 (patch) | |
| tree | bc1182b652a38518ee202240e5d98ab5c176e5b8 /nginx | |
| parent | 620d9059ad275e8a03f87cebc162ff1c0cb91717 (diff) | |
Fix cgit CSS 404 by setting explicit asset paths
Cgit was generating links to /cgit.css which, when accessed via
swave.lol/cgit, routed to Ghost instead of the cgit container.
Set css/logo paths to /cgit-css/ in cgitrc and add a /cgit-css/
proxy location in the main nginx config.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 72f7ac3..450659b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -48,6 +48,11 @@ server { charset utf-8; + # Cgit static assets (css, images) + location /cgit-css/ { + proxy_pass http://cgit:80/cgit-css/; + } + # Cgit via path prefix on main domain location /cgit { proxy_pass http://cgit:80/; |
