pdns/docker-compose-traefik.yml aktualisiert

This commit is contained in:
2026-01-03 03:31:30 +00:00
parent fd000b5ddb
commit 63009e6ff3

View File

@@ -27,7 +27,8 @@ services:
# Pfad zum Binary finden # Pfad zum Binary finden
PDNS_BIN=$$(which pdns_server || echo "/usr/local/sbin/pdns_server") PDNS_BIN=$$(which pdns_server || echo "/usr/local/sbin/pdns_server")
NOTIFY_IPS=$${PDNS_ALLOW_NOTIFY_FROM:-127.0.0.1}
AXFR_IPS=$${PDNS_ALLOW_AXFR_IPS:-127.0.0.1}
# 1. API-Konfiguration schreiben # 1. API-Konfiguration schreiben
cat > /etc/powerdns/pdns.d/99-env.conf <<EOF cat > /etc/powerdns/pdns.d/99-env.conf <<EOF
api=yes api=yes
@@ -37,7 +38,8 @@ services:
api-key=$${PDNS_API_KEY} api-key=$${PDNS_API_KEY}
webserver-allow-from=$${PDNS_API_ALLOW_FROM} webserver-allow-from=$${PDNS_API_ALLOW_FROM}
loglevel=$${PDNS_LOG_LEVEL} loglevel=$${PDNS_LOG_LEVEL}
allow-notify-from=$${PDNS_ALLOW_NOTIFY_FROM} NOTIFY_IPS=$${PDNS_ALLOW_NOTIFY_FROM:-127.0.0.1}
AXFR_IPS=$${PDNS_ALLOW_AXFR_IPS:-127.0.0.1}
launch=gsqlite3 launch=gsqlite3
gsqlite3-database=/data/pdns.sqlite3 gsqlite3-database=/data/pdns.sqlite3
EOF EOF