Commit 50819dd7 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix HTTP redirection

parent 23ddeeef
Pipeline #20304 passed with stage
in 31 seconds
......@@ -167,7 +167,7 @@ backend be_{{$site.Name}}_{{.Name}}
{{- range $i, $server := .Servers}}
{{"\t"}}server-template srv_{{$i}}_ 100 {{.Host}}:{{.Port}} check resolvers main
{{- end}}
{{if not $site.AllowHTTP}}{{"\t"}}redirect scheme https code 301 if { !ssl_fc }{{end}}
{{if not $site.AllowHTTP}}{{"\t"}}redirect scheme https code 301 if !{ ssl_fc }{{end}}
{{end}}
{{end}}
`
......
......@@ -177,7 +177,7 @@ backend be_example_web
option httpchk GET /_health
http-check expect status 200
server-template srv_0_ 100 srv1.example.com:8080 check resolvers main
redirect scheme https code 301 if { !ssl_fc }
redirect scheme https code 301 if !{ ssl_fc }
backend be_example_api
balance roundrobin
......@@ -188,7 +188,7 @@ backend be_example_api
option httpchk GET /_health
http-check expect status 200
server-template srv_0_ 100 srv-api1.example.com:8081 check resolvers main
redirect scheme https code 301 if { !ssl_fc }
redirect scheme https code 301 if !{ ssl_fc }
backend be_example2_default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment