From edb99c9da2198482345a1c3fc9f24a115d0aa62a Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 17 May 2026 17:21:55 +0900 Subject: Use custom Dockerfile for cgit (klakegg/cgit removed from Docker Hub) Co-Authored-By: Claude Sonnet 4.6 --- cgit/lighttpd.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cgit/lighttpd.conf (limited to 'cgit/lighttpd.conf') diff --git a/cgit/lighttpd.conf b/cgit/lighttpd.conf new file mode 100644 index 0000000..bdc295b --- /dev/null +++ b/cgit/lighttpd.conf @@ -0,0 +1,14 @@ +server.document-root = "/usr/share/webapps/cgit" +server.port = 80 + +server.modules = ( + "mod_cgi", + "mod_rewrite", +) + +index-file.names = ("cgit.cgi") +cgi.assign = (".cgi" => "") + +url.rewrite-once = ( + "^(/[^?]*)(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" +) -- cgit v1.2.3