From 1a0e6c58c622a04a3550045f09989018d8290c3b Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 3 Nov 2022 15:26:26 +0330 Subject: cgit update --- terminaldweller.com/cgit/cgit.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 terminaldweller.com/cgit/cgit.conf (limited to 'terminaldweller.com/cgit/cgit.conf') 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", + ) +} -- cgit v1.2.3