From 4bcd9f2a7f88188a2ad4807706584c0c2f46a64f Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Thu, 22 Jan 2026 20:33:12 +0100 Subject: [PATCH] Fix README.md and config.example.toml --- README.md | 6 ++++-- files/config.example.toml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c6b3995..b7e43c2 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,15 @@ chmod 770 /var/log/ddns-service chown ddns:ddns /etc/ddns-service /var/lib/ddns-service /var/log/ddns-service ``` -3. Config file: +3. Config file and templates: ```bash wget -O /etc/ddns-service/config.toml https://git.ccc-rheintal.ch/spacefreak/ddns-service/raw/branch/master/files/config.example.toml +wget -O /etc/ddns-service/config.toml https://git.ccc-rheintal.ch/spacefreak/ddns-service/raw/branch/master/files/change_notification.j2 +wget -O /etc/ddns-service/config.toml https://git.ccc-rheintal.ch/spacefreak/ddns-service/raw/branch/master/files/expiry_notification.j2 # The config file must not be world readable! chmod 640 /etc/ddns-service/config.toml -chown ddns:ddns /etc/ddns-service/config.toml +chown -R ddns:ddns /etc/ddns-service/ ``` 4. Service autostart diff --git a/files/config.example.toml b/files/config.example.toml index 92840f5..410addf 100644 --- a/files/config.example.toml +++ b/files/config.example.toml @@ -30,8 +30,6 @@ path = "/var/lib/ddns-service/ddns.db" # required for sqlite # dns_timeout = 5 # default, seconds # ddns_default_key_file = "/etc/ddns-service/ddns.key" # optional, BIND TSIG key # cleanup_interval = 60 # default, seconds -# change_notification_template = "/etc/ddns-service/change_notification.j2" # optional -# expiry_notification_template = "/etc/ddns-service/expiry_notification.j2" # optional # Per-zone TSIG key overrides (optional) # [dns_service.zone_keys] @@ -49,6 +47,8 @@ smtp_host = "localhost" # required if email.enabled # smtp_password = "" # smtp_starttls = false from_address = "ddns@example.com" # required if email.enabled +# change_notification_template = "/etc/ddns-service/change_notification.j2" # optional +# expiry_notification_template = "/etc/ddns-service/expiry_notification.j2" # optional [rate_limit] # enabled = true # default