Use hdr(host) in the portainer acl.

This commit is contained in:
Andrea Dell'Amico 2020-11-06 18:05:25 +01:00
parent b59a207d62
commit 09a3fc6194
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}