aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cgit/cgit.conf
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-11-03 11:56:26 +0000
committerterminaldweller <thabogre@gmail.com>2022-11-03 11:56:26 +0000
commit1a0e6c58c622a04a3550045f09989018d8290c3b (patch)
treed8c083ecf3feaa42a2778e2fa9a4dc9ee070c80d /terminaldweller.com/cgit/cgit.conf
parentupdate (diff)
downloadscripts-1a0e6c58c622a04a3550045f09989018d8290c3b.tar.gz
scripts-1a0e6c58c622a04a3550045f09989018d8290c3b.zip
cgit update
Diffstat (limited to 'terminaldweller.com/cgit/cgit.conf')
-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",
+ )
+}