Revert "Auto redirects to https"

This reverts commit 6edb858f8f.
This commit is contained in:
pierreozoux 2014-10-28 18:02:57 +00:00
parent 2d9205d343
commit 80a151df86

View file

@ -38,7 +38,17 @@ default_backend {{$default_service.hostname}}
frontend http-in
bind *:80
redirect scheme https code 301 if !{ ssl_fc }
{{range $app := lsdir "/services"}}
{{$hostnames := printf "/services/%s/*" $app}}
{{range gets $hostnames}}
{{$hostname := .Key}}
{{$data := json .Value}}
# {{base $hostname}}:
acl is_{{base $hostname}} hdr(host) -i {{base $hostname}}
acl is_{{base $hostname}} hdr(host) -i www.{{base $hostname}}
use_backend {{base $hostname}} if is_{{base $hostname}}
{{end}}
{{end}}
{{range $app := lsdir "/services"}}
{{$hostnames := printf "/services/%s/*" $app}}