🐛: fix v4 whitelist

This commit is contained in:
VC
2024-11-02 11:20:33 +01:00
parent 4e9e1e6f15
commit af4f913014
2 changed files with 6 additions and 2 deletions

View File

@@ -60,7 +60,11 @@ frontend https
{% for hostname in hostvars[server]['web_hostname'] | sort %}
## {{ hostname }} configuration
acl host_{{ hostname }} req.ssl_sni -i {{ hostname }}
use_backend https_{{ server }} if host_{{ hostname }}
{% if hostname == "btf.mateu.be" %}
acl network_allowed_{{ hostname }} src 88.175.123.77
{% endif %}
use_backend https_{{ server }} if host_{{ hostname }}{% if hostname == "btf.mateu.be" %} network_allowed_{{ hostname }}{% endif %}
{% endfor %}
{% endfor %}