2016-11-11 21:48:00 +07:00
|
|
|
|
[general]
|
2016-11-28 02:21:38 +07:00
|
|
|
|
# dns interface
|
|
|
|
|
listen = ":53"
|
2016-11-29 03:46:24 +07:00
|
|
|
|
# protocol, "udp", "udp4", "udp6" or "tcp", "tcp4", "tcp6"
|
|
|
|
|
protocol = "udp"
|
2016-11-11 21:48:00 +07:00
|
|
|
|
# domain name to serve th requests off of
|
|
|
|
|
domain = "auth.example.org"
|
|
|
|
|
# zone name server
|
|
|
|
|
nsname = "ns1.auth.example.org"
|
|
|
|
|
# admin email address, with @ substituted with .
|
|
|
|
|
nsadmin = "admin.example.org"
|
2016-11-15 14:27:34 +07:00
|
|
|
|
# predefined records that we're serving in addition to the TXT
|
|
|
|
|
records = [
|
|
|
|
|
# default A
|
|
|
|
|
"auth.example.org. A 192.168.1.100",
|
|
|
|
|
# A
|
|
|
|
|
"ns1.auth.example.org. A 192.168.1.100",
|
|
|
|
|
"ns2.auth.example.org. A 192.168.1.100",
|
|
|
|
|
# NS
|
|
|
|
|
"auth.example.org. NS ns1.auth.example.org.",
|
|
|
|
|
"auth.example.org. NS ns2.auth.example.org.",
|
|
|
|
|
]
|
2016-11-16 19:56:49 +07:00
|
|
|
|
# debug messages from CORS etc
|
|
|
|
|
debug = false
|
2016-11-15 14:27:34 +07:00
|
|
|
|
|
2016-11-17 22:52:55 +07:00
|
|
|
|
[database]
|
|
|
|
|
# Database engine to use, sqlite3 or postgres
|
|
|
|
|
engine = "sqlite3"
|
|
|
|
|
# Connection string, filename for sqlite3 and postgres://$username:$password@$host/$db_name for postgres
|
|
|
|
|
connection = "acme-dns.db"
|
|
|
|
|
# connection = "postgres://user:password@localhost/acmedns_db"
|
2016-11-11 21:48:00 +07:00
|
|
|
|
|
2016-11-13 19:50:44 +07:00
|
|
|
|
[api]
|
|
|
|
|
# domain name to listen requests for, mandatory if using tls = "letsencrypt"
|
|
|
|
|
api_domain = ""
|
|
|
|
|
# listen port, eg. 443 for default HTTPS
|
|
|
|
|
port = "8080"
|
2016-11-16 19:56:49 +07:00
|
|
|
|
# possible values: "letsencrypt", "cert", "none"
|
|
|
|
|
tls = "none"
|
2016-11-11 21:48:00 +07:00
|
|
|
|
# only used if tls = "cert"
|
|
|
|
|
tls_cert_privkey = "/etc/tls/example.org/privkey.pem"
|
|
|
|
|
tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
|
2016-11-16 19:56:49 +07:00
|
|
|
|
# CORS AllowOrigins, wildcards can be used
|
|
|
|
|
corsorigins = [
|
2016-11-17 22:52:55 +07:00
|
|
|
|
"*"
|
2016-11-16 19:56:49 +07:00
|
|
|
|
]
|
2016-11-13 19:50:44 +07:00
|
|
|
|
|
|
|
|
|
[logconfig]
|
2016-11-23 21:42:39 +07:00
|
|
|
|
# logging level: "error", "warning", "info" or "debug"
|
2016-11-13 19:50:44 +07:00
|
|
|
|
loglevel = "debug"
|
2016-11-26 20:42:35 +07:00
|
|
|
|
# possible values: stdout, TODO file & integrations
|
2016-11-13 19:50:44 +07:00
|
|
|
|
logtype = "stdout"
|
2016-11-26 20:42:35 +07:00
|
|
|
|
# file path for logfile TODO
|
|
|
|
|
# logfile = "./acme-dns.log"
|
|
|
|
|
# format, either "json" or "text"
|
|
|
|
|
logformat = "text"
|