IRCNow

This is an old revision of the document!


$ doas pkg_add cgit

Inside /etc/httpd.conf:

server "git.ircnow.org" {
        listen on * port 80
        location "/.well-known/acme-challenge/*" {
                root "/acme"
                request strip 2
        }
        location * {
                block return 302 "https://$HTTP_HOST$REQUEST_URI"
        }
}
server "git.ircnow.org" {
        listen on * tls port 443
        tls {
                certificate "/etc/ssl/bnc3.ircnow.org.fullchain.pem"
                key "/etc/ssl/private/bnc3.ircnow.org.key"        
        }
        location "/.well-known/acme-challenge/*" {
                root "/acme"
                request strip 2
        }
        location "*~" {
                block drop
        }
        location "/cgit.*" {
                root "/cgit"
                no fastcgi
        }
        root "/cgi-bin/cgit.cgi"
        fastcgi socket "/run/slowcgi.sock"
}