Skip to content
Snippets Groups Projects
Commit 97dfab3e authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

fix mail autoconfig

parent 50866f9b
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,6 @@ mode http ...@@ -27,7 +27,6 @@ mode http
rspadd Strict-Transport-Security:\ max-age=15768000 rspadd Strict-Transport-Security:\ max-age=15768000
reqadd X-Forwarded-Proto:\ https reqadd X-Forwarded-Proto:\ https
acl autoconfig hdr_beg(host) -i autoconfig acl autoconfig hdr_beg(host) -i autoconfig
use_backend mail.indie.host if autoconfig
{{range $app := lsdir "/services"}} {{range $app := lsdir "/services"}}
{{$hostnames := printf "/services/%s/*" $app}} {{$hostnames := printf "/services/%s/*" $app}}
...@@ -41,6 +40,8 @@ mode http ...@@ -41,6 +40,8 @@ mode http
{{end}} {{end}}
{{end}} {{end}}
use_backend autoconfig if autoconfig
frontend http-in frontend http-in
bind *:80 bind *:80
redirect scheme https code 301 redirect scheme https code 301
...@@ -56,3 +57,6 @@ backend {{base $hostname}} ...@@ -56,3 +57,6 @@ backend {{base $hostname}}
server Server {{$data.ip}}:{{$data.port}} cookie Server server Server {{$data.ip}}:{{$data.port}} cookie Server
{{end}} {{end}}
{{end}} {{end}}
backend autoconfig
cookie SERVERID insert nocache indirect
server Server mail.indie.host:443 cookie Server ssl verify none
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment