summaryrefslogtreecommitdiff
path: root/lighttpd.conf
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-04-24 23:36:52 +0200
committerJesper Jensen <jesper@jnsn.dev>2026-06-04 19:39:17 +0200
commitac89b3c715fd3eddca7898e069ee04498c1a1ba2 (patch)
treeeb0294e645dd494ebe2b222292e6f8463d936277 /lighttpd.conf
INITIAL COMMIT
Diffstat (limited to 'lighttpd.conf')
-rw-r--r--lighttpd.conf43
1 files changed, 43 insertions, 0 deletions
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..cd9d562
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,43 @@
+server.modules = (
+ "mod_alias",
+ "mod_auth",
+ "mod_authn_file",
+ "mod_cgi",
+ "mod_rewrite",
+ "mod_setenv"
+)
+
+server.bind = "0.0.0.0"
+server.port = 8080
+server.username = "git"
+server.groupname = "git"
+server.document-root = "/var/www/localhost/htdocs"
+server.pid-file = "/run/lighttpd/lighttpd.pid"
+
+index-file.names = ("index.html")
+
+alias.url = (
+ "/cgit.cgi" => "/usr/share/webapps/cgit/cgit.cgi",
+ "/cgit.css" => "/usr/share/webapps/cgit/cgit.css",
+ "/cgit.png" => "/usr/share/webapps/cgit/cgit.png",
+ "/cgit" => "/usr/share/webapps/cgit/cgit.cgi",
+ "/favicon.ico" => "/usr/share/webapps/cgit/favicon.ico",
+ "/robots.txt" => "/usr/share/webapps/cgit/robots.txt",
+ "/git" => "/usr/local/libexec/git-http-backend.cgi"
+)
+
+url.rewrite-once = (
+ "^/$" => "/cgit"
+)
+
+cgi.assign = (
+ ".cgi" => ""
+)
+
+setenv.add-environment = (
+ "CGIT_CONFIG" => "/etc/cgitrc",
+ "GIT_PROJECT_ROOT" => "/var/lib/git",
+ "GIT_HTTP_EXPORT_ALL" => "1"
+)
+
+include "/etc/lighttpd/auth.conf"