Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. [general]
  2. # DNS interface. Note that systemd-resolved may reserve port 53 on 127.0.0.53
  3. # In this case acme-dns will error out and you will need to define the listening interface
  4. # for example: listen = "127.0.0.1:53"
  5. listen = "127.0.0.1:53"
  6. # protocol, "both", "both4", "both6", "udp", "udp4", "udp6" or "tcp", "tcp4", "tcp6"
  7. protocol = "both"
  8. # domain name to serve the requests off of
  9. domain = "auth.example.org"
  10. # zone name server
  11. nsname = "auth.example.org"
  12. # admin email address, where @ is substituted with .
  13. nsadmin = "admin.example.org"
  14. # predefined records served in addition to the TXT
  15. records = [
  16. # domain pointing to the public IP of your acme-dns server
  17. "auth.example.org. A 198.51.100.1",
  18. # specify that auth.example.org will resolve any *.auth.example.org records
  19. "auth.example.org. NS auth.example.org.",
  20. ]
  21. # debug messages from CORS etc
  22. debug = false
  23.  
  24. [database]
  25. # Database engine to use, sqlite3 or postgres
  26. engine = "sqlite3"
  27. # Connection string, filename for sqlite3 and postgres://$username:$password@$host/$db_name for postgres
  28. # Please note that the default Docker image uses path /var/lib/acme-dns/acme-dns.db for sqlite3
  29. connection = "/var/lib/acme-dns/acme-dns.db"
  30. # connection = "postgres://user:password@localhost/acmedns_db"
  31.  
  32. [api]
  33. # listen ip eg. 127.0.0.1
  34. ip = "0.0.0.0"
  35. # disable registration endpoint
  36. disable_registration = false
  37. # listen port, eg. 443 for default HTTPS
  38. port = "443"
  39. # possible values: "letsencrypt", "letsencryptstaging", "cert", "none"
  40. tls = "letsencryptstaging"
  41. # only used if tls = "cert"
  42. tls_cert_privkey = "/etc/tls/example.org/privkey.pem"
  43. tls_cert_fullchain = "/etc/tls/example.org/fullchain.pem"
  44. # only used if tls = "letsencrypt"
  45. acme_cache_dir = "api-certs"
  46. # CORS AllowOrigins, wildcards can be used
  47. corsorigins = [
  48. "*"
  49. ]
  50. # use HTTP header to get the client ip
  51. use_header = false
  52. # header name to pull the ip address / list of ip addresses from
  53. header_name = "X-Forwarded-For"
  54.  
  55. [logconfig]
  56. # logging level: "error", "warning", "info" or "debug"
  57. loglevel = "debug"
  58. # possible values: stdout, TODO file & integrations
  59. logtype = "stdout"
  60. # file path for logfile TODO
  61. # logfile = "./acme-dns.log"
  62. # format, either "json" or "text"
  63. logformat = "text"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement