Skip to content

Instantly share code, notes, and snippets.

View t1m0thyj's full-sized avatar

Timothy Johnson t1m0thyj

  • Pittsburgh, PA
  • 13:12 (UTC -04:00)
View GitHub Profile
@t1m0thyj
t1m0thyj / 20-cgit.conf
Created January 17, 2024 04:49
CGit and Lighttpd config for GitHub mirror
server.modules += ( "mod_cgi", "mod_alias" )
$HTTP["url"] =~ "^/cgit" {
server.document-root = "/usr/lib/"
server.indexfiles = ("cgit.cgi")
cgi.assign = ("cgit.cgi" => "")
mimetype.assign = ( ".css" => "text/css" )
url.access-deny = ( "~", ".inc" )
}