Fix README.md and config.example.toml

This commit is contained in:
2026-01-22 20:33:12 +01:00
parent f879532755
commit 4bcd9f2a7f
2 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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