Commit 87764022 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Never require auth for letsencrypt and health-check routes

parent a759cb54
Pipeline #20460 passed with stage
in 33 seconds
......@@ -135,13 +135,13 @@ frontend fe_proxy
{{end -}}
{{if .EnableAuth -}}
{{"\t"}}acl auth_{{$site.Name}} http_auth(users_{{$site.Name}})
{{"\t"}}http-request auth realm private if domain_{{$site.Name}} !auth_{{$site.Name}}
{{"\t"}}http-request auth realm private if domain_{{$site.Name}}_80 !auth_{{$site.Name}}
{{"\t"}}http-request auth realm private if domain_{{$site.Name}}_443 !auth_{{$site.Name}}
{{"\t"}}http-request auth realm private if domain_{{$site.Name}} !auth_{{$site.Name}} !is_health !is_letsencrypt
{{"\t"}}http-request auth realm private if domain_{{$site.Name}}_80 !auth_{{$site.Name}} !is_health !is_letsencrypt
{{"\t"}}http-request auth realm private if domain_{{$site.Name}}_443 !auth_{{$site.Name}} !is_health !is_letsencrypt
{{range $i, $domain := .AltDomains -}}
{{"\t"}}http-request auth realm private if alt_domain_{{$site.Name}}_{{$i}} !auth_{{$site.Name}}
{{"\t"}}http-request auth realm private if alt_domain_{{$site.Name}}_{{$i}}_80 !auth_{{$site.Name}}
{{"\t"}}http-request auth realm private if alt_domain_{{$site.Name}}_{{$i}}_443 !auth_{{$site.Name}}
{{"\t"}}http-request auth realm private if alt_domain_{{$site.Name}}_{{$i}} !auth_{{$site.Name}} !is_health !is_letsencrypt
{{"\t"}}http-request auth realm private if alt_domain_{{$site.Name}}_{{$i}}_80 !auth_{{$site.Name}} !is_health !is_letsencrypt
{{"\t"}}http-request auth realm private if alt_domain_{{$site.Name}}_{{$i}}_443 !auth_{{$site.Name}} !is_health !is_letsencrypt
{{end -}}
{{end -}}
{{range $i, $route := .Routes -}}
......
......@@ -170,9 +170,9 @@ frontend fe_proxy
acl domain_example2_80 hdr(Host) -i example2.com:80
acl domain_example2_443 hdr(Host) -i example2.com:443
acl auth_example2 http_auth(users_example2)
http-request auth realm private if domain_example2 !auth_example2
http-request auth realm private if domain_example2_80 !auth_example2
http-request auth realm private if domain_example2_443 !auth_example2
http-request auth realm private if domain_example2 !auth_example2 !is_health !is_letsencrypt
http-request auth realm private if domain_example2_80 !auth_example2 !is_health !is_letsencrypt
http-request auth realm private if domain_example2_443 !auth_example2 !is_health !is_letsencrypt
acl route_example2_0 path_beg /
use_backend be_example2_default if domain_example2 route_example2_0 auth_example2
use_backend be_example2_default if domain_example2_80 route_example2_0 auth_example2
......
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