cloudron/cloudron-powerdns/setup/data/config/pdns.d/01-api.conf
Jacob Kiers e7af96ec36 Add initial PowerDNS code
Signed-off-by: Jacob Kiers <code@kiers.eu>
2023-12-06 21:32:48 +01:00

28 lines
899 B
Plaintext

# Webserver and API configuration
# In order to enable the administrative interface, make sure that the
# following three keys are updated.
#
# Generate a secure API key with the following command:
# `LC_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c32`
#
# This API key is also the password for the web interface.
webserver=no
api=no
api-key=HereYourSuperSecureApiKeyWhichIsAlsoThePasswordForTheAdminInterface
# Listen address for the webserver. Defaults to everywhere, so the API can reach it.
webserver-address=0.0.0.0
# The webserver port to listen on. Do not change this.
webserver-port=8082
# Where to allow requests from. Basic firewall.
# Update this to allow the API to work.
webserver-allow-from=127.0.0.0/8,::1,fe80::/10,0.0.0.0/0,::/0
# Controls the verbosity of webserver logging
# Accepted values: none, normal, detailed
webserver-loglevel=normal