mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(ddclient): update config
This commit is contained in:
parent
f24b9582f7
commit
45b42e5226
1 changed files with 5 additions and 9 deletions
|
|
@ -14,16 +14,12 @@ in {
|
|||
protocol = mkDefault "cloudflare";
|
||||
zone = mkDefault config.networking.domain;
|
||||
use = "no";
|
||||
usev6 = mkIf config.networking.enableIPv6 (mkDefault "webv6, webv6=https://ipv6.nsupdate.info/myip");
|
||||
usev4 = mkDefault "webv4, webv6=https://ipv6.nsupdate.info/myip";
|
||||
domains = [];
|
||||
extraConfig = mkMerge [
|
||||
(mkIf config.networking.enableIPv6 ''
|
||||
usev6=webv6, webv6=https://ipv6.nsupdate.info/myip
|
||||
'')
|
||||
''
|
||||
usev4=webv4, webv4=https://ipv4.nsupdate.info/myip
|
||||
max-interval=1d
|
||||
''
|
||||
];
|
||||
extraConfig = ''
|
||||
max-interval=1d
|
||||
'';
|
||||
passwordFile = config.sops.secrets.dyndns_cloudflare_token.path;
|
||||
};
|
||||
systemd.services.ddclient = mkIf cfg.enable rec {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue