Fix README.md and config.example.toml
This commit is contained in:
@@ -43,13 +43,15 @@ chmod 770 /var/log/ddns-service
|
|||||||
chown ddns:ddns /etc/ddns-service /var/lib/ddns-service /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
|
```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/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!
|
# The config file must not be world readable!
|
||||||
chmod 640 /etc/ddns-service/config.toml
|
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
|
4. Service autostart
|
||||||
|
|||||||
@@ -30,8 +30,6 @@ path = "/var/lib/ddns-service/ddns.db" # required for sqlite
|
|||||||
# dns_timeout = 5 # default, seconds
|
# dns_timeout = 5 # default, seconds
|
||||||
# ddns_default_key_file = "/etc/ddns-service/ddns.key" # optional, BIND TSIG key
|
# ddns_default_key_file = "/etc/ddns-service/ddns.key" # optional, BIND TSIG key
|
||||||
# cleanup_interval = 60 # default, seconds
|
# 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)
|
# Per-zone TSIG key overrides (optional)
|
||||||
# [dns_service.zone_keys]
|
# [dns_service.zone_keys]
|
||||||
@@ -49,6 +47,8 @@ smtp_host = "localhost" # required if email.enabled
|
|||||||
# smtp_password = ""
|
# smtp_password = ""
|
||||||
# smtp_starttls = false
|
# smtp_starttls = false
|
||||||
from_address = "ddns@example.com" # required if email.enabled
|
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]
|
[rate_limit]
|
||||||
# enabled = true # default
|
# enabled = true # default
|
||||||
|
|||||||
Reference in New Issue
Block a user