aboutsummaryrefslogblamecommitdiffstats
path: root/terminaldweller.com/cgit/cgit.conf
blob: caf88760cae89eaadf9102e7ca97ba09e6f63f8b (plain) (tree)
1
2
3
4
5
                                                             
 


                                                        












                                                                   
server.modules += ( "mod_cgi", "mod_rewrite", "mod_openssl" )

$SERVER["socket"] == ":443" {
    ssl.engine                    = "enable"
    ssl.pemfile                   = "/etc/certs/git.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",
    )
}