logdir "/var/www/logs" server "example.com" { listen on * port 80 location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } location * { block return 302 "https://$HTTP_HOST$REQUEST_URI" } } server "example.com" { listen on * tls port 443 tls { certificate "/etc/ssl/example.com.fullchain.pem" key "/etc/ssl/private/example.com.key" } location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 no fastcgi } location "/static/*" { root "/static" request strip 1 no fastcgi } location "/git/*" { root "/git" request strip 1 no fastcgi } root "/cgi-bin/gitweb.cgi" fastcgi { socket "/run/slowcgi.sock" param GITWEB_CONFIG "/conf/gitweb.conf" } }