diff --git a/confd/templates/haproxy.cfg.tmpl b/confd/templates/haproxy.cfg.tmpl index 667031971465c84e247cbba4b5f2959e4a2d76e3..1e2df798e0bef5695531800873699e6a859e4d6f 100644 --- a/confd/templates/haproxy.cfg.tmpl +++ b/confd/templates/haproxy.cfg.tmpl @@ -32,17 +32,7 @@ mode http frontend http-in bind *:80 -{{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}} + redirect scheme https code 301 {{range $app := lsdir "/services"}} {{$hostnames := printf "/services/%s/*" $app}}