Remove the need for multiple config files

This commit removes the almost a 100% redundant tests (two fields were
checked differently) and makes a single example configuration for users.
This commit is contained in:
Kristoffer Dalby 2021-10-22 18:14:29 +01:00
parent 9e2637d65f
commit b85adbc40a
No known key found for this signature in database
GPG key ID: 09F62DC067465735
3 changed files with 34 additions and 78 deletions

View file

@ -1,26 +0,0 @@
---
server_url: http://127.0.0.1:8080
listen_addr: 0.0.0.0:8080
private_key_path: private.key
derp_map_path: derp.yaml
ephemeral_node_inactivity_timeout: 30m
# SQLite config (uncomment it if you want to use SQLite)
db_type: sqlite3
db_path: db.sqlite
acme_url: https://acme-v02.api.letsencrypt.org/directory
acme_email: ''
tls_letsencrypt_hostname: ''
tls_letsencrypt_listen: ":http"
tls_letsencrypt_cache_dir: ".cache"
tls_letsencrypt_challenge_type: HTTP-01
tls_cert_path: ''
tls_key_path: ''
acl_policy_path: ''
dns_config:
nameservers:
- 1.1.1.1
domains: []
magic_dns: true
base_domain: example.com