server "{{ cgit_domain }}" { listen on egress tls port 443 tls { certificate "/etc/ssl/{{ cgit_domain }}.fullchain.pem" key "/etc/ssl/private/{{ cgit_domain }}.key" } # Serve cgit static files (cgit.css, cgit.png) directly from disk location "/cgit.*" { root "/cgit" no fastcgi } # Explicitly route root (/) to cgit via fastcgi location "/" { root "/cgi-bin/cgit.cgi" fastcgi socket "/run/slowcgi.sock" } # Route any other cgit paths/actions via fastcgi root "/cgi-bin/cgit.cgi" fastcgi socket "/run/slowcgi.sock" }