From 5bf46bbac5feda06ec10575c6293974d80b2e3df Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 17 May 2026 22:02:49 +0900 Subject: Fix cgit CSS/JS 404 and update docs - lighttpd.conf: exempt static files from CGI rewrite - deploy.sh: add --build to rebuild image on config changes - CLAUDE.md, Deploy.md: add cgit directory and deploy notes Co-Authored-By: Claude Sonnet 4.6 --- cgit/deploy.sh | 2 +- cgit/lighttpd.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'cgit') diff --git a/cgit/deploy.sh b/cgit/deploy.sh index f8b3f40..276b188 100644 --- a/cgit/deploy.sh +++ b/cgit/deploy.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")" -docker compose up -d +docker compose up -d --build diff --git a/cgit/lighttpd.conf b/cgit/lighttpd.conf index bdc295b..1ce38cc 100644 --- a/cgit/lighttpd.conf +++ b/cgit/lighttpd.conf @@ -10,5 +10,6 @@ index-file.names = ("cgit.cgi") cgi.assign = (".cgi" => "") url.rewrite-once = ( + "^/(cgit\.css|cgit\.js|cgit\.png|cgit-favicon\.png)$" => "/$1", "^(/[^?]*)(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" ) -- cgit v1.2.3