types { include "/usr/share/misc/mime.types" } server "maddaat.org" { include "/etc/httpd/_listen80.conf" include "/etc/httpd/_acme.conf" location "*" { # HTTP 301 Moved Permanently - enforce HTTPS block return 301 "https://maddaat.org$REQUEST_URI" } } server "maddaat.org" { include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" location "*" { block return 307 "http://git.maddaat.org" } } server "www.maddaat.org" { include "/etc/httpd/_listen80.conf" include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" location "*" { # HTTP 301 Moved Permanently - enforce non-www site block return 301 "https://maddaat.org$REQUEST_URI" } } server "git.maddaat.org" { include "/etc/httpd/_listen80.conf" include "/etc/httpd/_acme.conf" location "*" { # HTTP 301 Moved Permanently - enforce HTTPS block return 301 "https://git.maddaat.org$REQUEST_URI" } } server "git.maddaat.org" { include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" location "/cgit.*" { root "/cgit" no fastcgi } root "/cgi-bin/cgit.cgi" fastcgi socket "/run/slowcgi.sock" }