summaryrefslogtreecommitdiff
path: root/cgit/lighttpd.conf
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-05-17 17:21:55 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-05-17 17:21:55 +0900
commitedb99c9da2198482345a1c3fc9f24a115d0aa62a (patch)
treec8a1fff2dfb5016526c92a3a19d5d2f8e3f3249c /cgit/lighttpd.conf
parent7e8e89ef2e2b2302c92e03429e43be9b1db08d49 (diff)
Use custom Dockerfile for cgit (klakegg/cgit removed from Docker Hub)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cgit/lighttpd.conf')
-rw-r--r--cgit/lighttpd.conf14
1 files changed, 14 insertions, 0 deletions
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"
+)