Support a second ACL per service in the haproxy configuration.
This commit is contained in:
parent
9acd865a65
commit
3ad7a0168f
|
@ -87,6 +87,8 @@ frontend http
|
|||
{% endif %}
|
||||
{% for srv in docker_swarm_haproxy_additional_services %}
|
||||
acl {{ srv.acl_name }} {{ srv.acl_rule }}
|
||||
{%if srv.acl_path_rule is defined %}acl {{ srv.acl_name }}_path {{ srv.acl_path_rule }}{% endif %}
|
||||
|
||||
{% if srv.allowed_networks is defined %}
|
||||
acl {{ srv.acl_name }}_nets src {% for net in srv.allowed_networks %} {{ net }}{% endfor %}
|
||||
|
||||
|
@ -98,7 +100,8 @@ frontend http
|
|||
use_backend portainer_bck if portainer_srv
|
||||
{% endif %}
|
||||
{% for srv in docker_swarm_haproxy_additional_services %}
|
||||
use_backend {{ srv.acl_name }}_bck if {{ srv.acl_name }}
|
||||
use_backend {{ srv.acl_name }}_bck if {{ srv.acl_name }} {%if srv.acl_path_rule is defined %}{{ srv.acl_name }}_path{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% if docker_swarm_expose_api_via_haproxy %}
|
||||
|
|
Loading…
Reference in New Issue