add docker host for accessing api

This commit is contained in:
2024-07-26 11:44:05 +02:00
parent ffc44a6b12
commit 7e513f6c77

View File

@@ -1,4 +1,5 @@
api = Yes api = Yes
api-key ={{ pdns_api_key | default(lookup('password', '/etc/powerdns/pdns.d/.api-key length=20')) }} api-key ={{ pdns_api_key | default(lookup('password', '/etc/powerdns/pdns.d/.api-key length=20')) }}
webserver = Yes webserver = Yes
webserver-address = {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% else %}{{ ansible_default_ipv4.address }}{% endif %} webserver-address = {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% else %}{{ ansible_default_ipv4.address }}{% endif %}
webserver-allow-from = 127.0.0.1, [::1], 192.168.1.238