aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cgit/cgit.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--terminaldweller.com/cgit/cgit.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/terminaldweller.com/cgit/cgit.conf b/terminaldweller.com/cgit/cgit.conf
new file mode 100644
index 0000000..ac59b7a
--- /dev/null
+++ b/terminaldweller.com/cgit/cgit.conf
@@ -0,0 +1,19 @@
+server.modules += ( "mod_cgi", "mod_rewrite" )
+
+#$SERVER["socket"] == ":443" {
+$SERVER["socket"] == ":80" {
+ #ssl.engine = "enable"
+ #ssl.pemfile = "/etc/lighttpd/ssl/git.example.com.pem"
+
+ server.name = "git.terminaldweller.com"
+ server.document-root = "/usr/share/webapps/cgit/"
+
+ index-file.names = ( "cgit.cgi" )
+ cgi.assign = ( "cgit.cgi" => "" )
+ mimetype.assign = ( ".css" => "text/css" )
+ url.rewrite-once = (
+ "^/cgit/cgit.css" => "/cgit.css",
+ "^/cgit/cgit.png" => "/cgit.png",
+ "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
+ )
+}