Role pdns-api: always allow localhost

This commit is contained in:
Julian Labus 2019-09-02 15:21:11 +02:00
parent 417b60a0ac
commit 12774ae19c

View file

@ -18,9 +18,11 @@ server {
location / {
# allow defined addresses to access
{% for host in pdns_limit_api_access %}
allow 127.0.0.0/8;
allow ::1/128;
{% for host in pdns_limit_api_access %}
allow {{ host }};
{% endfor %}
{% endfor %}
# drop rest of the world
deny all;