From 9f4ee570e617be7d25b91264f60cdc8915fc9275 Mon Sep 17 00:00:00 2001 From: Arseney300 Date: Fri, 20 Feb 2026 08:59:45 +0700 Subject: 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 --- nginx/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nginx') 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/; -- cgit v1.2.3