Role pdns-api: always allow localhost
This commit is contained in:
parent
417b60a0ac
commit
12774ae19c
1 changed files with 4 additions and 2 deletions
|
@ -18,9 +18,11 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# allow defined addresses to access
|
# 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 }};
|
allow {{ host }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
# drop rest of the world
|
# drop rest of the world
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue