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

Bug fix

parent 9737a3e0
Branches main
Tags v1.11.1
No related merge requests found
......@@ -141,14 +141,14 @@ backend backend_{{ external.key }}
{% for host in groups['all'] %}
backend backend_{{host}}
{% if host == inventory_hostname %}
{% if host == inventory_hostname or host == 'localhost' %}
http-response deny
{% else %}
server server_{{host}} {{hostvars[host]['static_ipv4']|default(hostvars[host]['ansible_default_ipv4']['address'])}}:80 maxconn 100
{% endif %}
backend backend_{{host}}_https
{% if host == inventory_hostname %}
{% if host == inventory_hostname or host == 'localhost' %}
http-response deny
{% else %}
http-response set-header Strict-Transport-Security "max-age=16000000; includeSubDomains; preload;"
......
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