src

sauce
got clone ssh://anon@src.dalliard.ch/src
log | files | refs

httpd.conf (1186B)


      1 types {
      2 	include "/usr/share/misc/mime.types"
      3 	"text"/"plain; charset=utf-8"    txt
      4 	"text"/"plain; charset=utf-8"    asc
      5 }
      6 server "http" {
      7 	listen on egress port http
      8 	location "/.well-known/acme-challenge/*" {
      9 		root "/acme"
     10 		request strip 2
     11 	}
     12 	location * {
     13 		block return 301 "https://$HTTP_HOST$REQUEST_URI"
     14 	}
     15 	no log
     16 }
     17 server "https" {
     18 	listen on lo port https
     19 	no log
     20 }
     21 server "dalliard.ch" {
     22 	listen on lo port https
     23 	location "/.well-known/lnurlp/*" {
     24 		root "/ln/lnaddr.sh"
     25 		request strip 2
     26 		fastcgi socket "/run/slowcgi.sock"
     27 	}
     28 	errdocs "/www"
     29 	root "/www"
     30 	gzip-static
     31 	no log
     32 }
     33 server "mta-sts.dalliard.ch" {
     34 	listen on lo port https
     35 	location "/.well-known/mta-sts.txt" {
     36 		root "/mail"
     37 		request strip 1
     38 	}
     39 	gzip-static
     40 	no log
     41 }
     42 server "go.dalliard.ch" {
     43 	listen on lo port https
     44 	location "/" {
     45 		block return 301 "https://s1.dalliard.ch"
     46 	}
     47 	fastcgi socket "/run/slowcgi.sock"
     48 	root "/go/redirect.sh"
     49 	no log
     50 }
     51 server "tmp.dalliard.ch" {
     52 	listen on lo port https
     53 	location "/" {
     54 		block return 301 "https://s1.dalliard.ch"
     55 	}
     56 	root "/tmp"
     57 	no log
     58 }
     59 server "www.dalliard.ch" {
     60 	listen on lo port https
     61 	block return 301 "https://dalliard.ch$REQUEST_URI"
     62 	no log
     63 }