Use hdr(host) in the portainer acl.
This commit is contained in:
parent
b59a207d62
commit
09a3fc6194
|
@ -83,7 +83,7 @@ frontend http
|
||||||
# HSTS (63072000 seconds)
|
# HSTS (63072000 seconds)
|
||||||
http-response set-header Strict-Transport-Security max-age=63072000
|
http-response set-header Strict-Transport-Security max-age=63072000
|
||||||
{% if docker_swarm_cluster_portainer_install %}
|
{% if docker_swarm_cluster_portainer_install %}
|
||||||
acl portainer_srv hdr_dom(host) -i {{ docker_swarm_portainer_hostname }}
|
acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for srv in docker_swarm_haproxy_additional_services %}
|
{% for srv in docker_swarm_haproxy_additional_services %}
|
||||||
acl {{ srv.acl_name }} {{ srv.acl_rule }}
|
acl {{ srv.acl_name }} {{ srv.acl_rule }}
|
||||||
|
|
Loading…
Reference in New Issue