Add GET parameter to allow useres to change expiry TTL

This commit is contained in:
2026-02-07 22:34:50 +01:00
parent 5b51a8a153
commit eafe106bf1
4 changed files with 119 additions and 18 deletions

View File

@@ -42,6 +42,9 @@ path = "/var/lib/ddns-service/ddns.db" # required for sqlite
[defaults]
# dns_ttl = 60 # default, DNS record TTL in seconds
# expiry_ttl = 3600 # default, 0 to disable expiration
# expiry_ttl_min = # optional, min value allowed via HTTP
# expiry_ttl_max = # optional, max value allowed via HTTP
# expiry_ttl_allow_zero = true # default, allow 0 (never expire) via HTTP
[email]
# enabled = false # default
@@ -70,6 +73,7 @@ from_address = "ddns@example.com" # required if email.enabled
# username: username, user
# password: password, pass, token
# notify_change: notify_change
# expiry_ttl: expiry_ttl
#
# Multiple endpoints can be defined with custom parameter names
@@ -82,6 +86,7 @@ from_address = "ddns@example.com" # required if email.enabled
# username = ["username", "user"]
# password = ["password", "pass", "token"]
# notify_change = ["notify_change"]
# expiry_ttl = ["expiry_ttl"]
# [[endpoints]]
# path = "/nic/update"
@@ -92,3 +97,4 @@ from_address = "ddns@example.com" # required if email.enabled
# username = ["username"]
# password = ["password"]
# notify_change = []
# expiry_ttl = []