Skip to content
Snippets Groups Projects
Commit 0f238f83 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/tineon#317 Define extra ACL in proxy for Ophinex

parent 5b2ab4de
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,9 @@ backend backend_{{host}}
{% if host == inventory_hostname or host == 'localhost' %}
http-response deny
{% else %}
{% for line in hostvars[host]['proxy_backend_extra_lines']|default([]) %}
{{ line }}
{% endfor %}
server server_{{host}} {{hostvars[host]['static_ipv4']}}:80 check maxconn {{hostvars[host]['proxy_maxconn']|default(proxy_maxconn)}}
{% endif %}
......@@ -293,6 +296,9 @@ backend backend_{{host}}_bigpipe
{% if host == inventory_hostname or host == 'localhost' %}
http-response deny
{% else %}
{% for line in hostvars[host]['proxy_backend_extra_lines']|default([]) %}
{{ line }}
{% endfor %}
no option http-buffer-request
server server_{{host}} {{hostvars[host]['static_ipv4']}}:80 check maxconn {{hostvars[host]['proxy_maxconn']|default(proxy_maxconn)}}
{% endif %}
......@@ -301,6 +307,9 @@ backend backend_{{host}}_https
{% if host == inventory_hostname or host == 'localhost' %}
http-response deny
{% else %}
{% for line in hostvars[host]['proxy_backend_extra_lines']|default([]) %}
{{ line }}
{% endfor %}
http-response set-header Strict-Transport-Security "max-age=16000000; includeSubDomains; preload;"
server server_{{host}} {{hostvars[host]['static_ipv4']}}:80 check maxconn {{hostvars[host]['proxy_maxconn']|default(proxy_maxconn)}}
{% endif %}
......@@ -309,6 +318,9 @@ backend backend_{{host}}_https_bigpipe
{% if host == inventory_hostname or host == 'localhost' %}
http-response deny
{% else %}
{% for line in hostvars[host]['proxy_backend_extra_lines']|default([]) %}
{{ line }}
{% endfor %}
no option http-buffer-request
http-response set-header Strict-Transport-Security "max-age=16000000; includeSubDomains; preload;"
server server_{{host}} {{hostvars[host]['static_ipv4']}}:80 check maxconn {{hostvars[host]['proxy_maxconn']|default(proxy_maxconn)}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment