fix mail autoconfig

This commit is contained in:
pierreozoux 2015-12-17 20:15:02 +00:00
parent 50866f9b12
commit 97dfab3e91

View file

@ -27,7 +27,6 @@ mode http
rspadd Strict-Transport-Security:\ max-age=15768000
reqadd X-Forwarded-Proto:\ https
acl autoconfig hdr_beg(host) -i autoconfig
use_backend mail.indie.host if autoconfig
{{range $app := lsdir "/services"}}
{{$hostnames := printf "/services/%s/*" $app}}
@ -41,6 +40,8 @@ mode http
{{end}}
{{end}}
use_backend autoconfig if autoconfig
frontend http-in
bind *:80
redirect scheme https code 301
@ -56,3 +57,6 @@ backend {{base $hostname}}
server Server {{$data.ip}}:{{$data.port}} cookie Server
{{end}}
{{end}}
backend autoconfig
cookie SERVERID insert nocache indirect
server Server mail.indie.host:443 cookie Server ssl verify none