- Extract hardcoded `ddclient.conf` into a dedicated file to improve readability and enable native syntax highlighting. - Refactor `dynu.nix` to use `builtins.readFile` and `builtins.replaceStrings` for dynamic secret injection. - Harden `ddclient` operational parameters: Remove `daemon=0` to force foreground execution and add `usev4=webv4` for explicit WAN IP discovery. Rationale: Eliminates fragile string-concatenation logic in Nix files and solves IP-resolution failures by ensuring the service executes in a controlled, foreground-reporting state.
12 lines
234 B
Plaintext
12 lines
234 B
Plaintext
# General configuration
|
|
syslog=yes
|
|
pid=/run/ddclient/ddclient.pid
|
|
usev4=webv4
|
|
|
|
# Provider definition using credentials decrypted at runtime
|
|
protocol=dyndns2
|
|
server=api.dynu.com
|
|
login=@dynu_user@
|
|
password=@dynu_password@
|
|
@dynu_domain@
|