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";
|
protocol = mkDefault "cloudflare";
|
||||||
zone = mkDefault config.networking.domain;
|
zone = mkDefault config.networking.domain;
|
||||||
use = "no";
|
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 = [];
|
domains = [];
|
||||||
extraConfig = mkMerge [
|
extraConfig = ''
|
||||||
(mkIf config.networking.enableIPv6 ''
|
max-interval=1d
|
||||||
usev6=webv6, webv6=https://ipv6.nsupdate.info/myip
|
'';
|
||||||
'')
|
|
||||||
''
|
|
||||||
usev4=webv4, webv4=https://ipv4.nsupdate.info/myip
|
|
||||||
max-interval=1d
|
|
||||||
''
|
|
||||||
];
|
|
||||||
passwordFile = config.sops.secrets.dyndns_cloudflare_token.path;
|
passwordFile = config.sops.secrets.dyndns_cloudflare_token.path;
|
||||||
};
|
};
|
||||||
systemd.services.ddclient = mkIf cfg.enable rec {
|
systemd.services.ddclient = mkIf cfg.enable rec {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue