Replace ddclient with Inadyn
This commit is contained in:
@@ -160,7 +160,6 @@ with pkgs;
|
|||||||
owner = "gitea";
|
owner = "gitea";
|
||||||
group = "gitea";
|
group = "gitea";
|
||||||
};
|
};
|
||||||
secrets.ddclient.file = secrets/ddclient.age;
|
|
||||||
secrets.miniflux = {
|
secrets.miniflux = {
|
||||||
file = secrets/miniflux.age;
|
file = secrets/miniflux.age;
|
||||||
owner = "miniflux";
|
owner = "miniflux";
|
||||||
@@ -212,6 +211,16 @@ with pkgs;
|
|||||||
owner = "acme";
|
owner = "acme";
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
};
|
};
|
||||||
|
secrets.inadyn-duckdns = {
|
||||||
|
file = secrets/inadyn-duckdns.age;
|
||||||
|
owner = "inadyn";
|
||||||
|
group = "inadyn";
|
||||||
|
};
|
||||||
|
secrets.inadyn-porkbun = {
|
||||||
|
file = secrets/inadyn-porkbun.age;
|
||||||
|
owner = "inadyn";
|
||||||
|
group = "inadyn";
|
||||||
|
};
|
||||||
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -34,13 +34,21 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Dynamic DNS configuration
|
# Dynamic DNS configuration
|
||||||
services.ddclient = {
|
services.inadyn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
quiet = true;
|
interval = "*:0/30";
|
||||||
interval = "30min";
|
settings = {
|
||||||
protocol = "duckdns";
|
provider."duckdns" = {
|
||||||
domains = [ "coolneng.duckdns.org" ];
|
hostname = "coolneng.duckdns.org";
|
||||||
passwordFile = config.age.secrets.ddclient.path;
|
include = config.age.secrets.inadyn-duckdns.path;
|
||||||
|
};
|
||||||
|
custom."porkbun.com" = {
|
||||||
|
ddns-server = "dynamicdns.park-your-domain.com";
|
||||||
|
ddns-path = "/update?domain=%u&password=%p&host=%h";
|
||||||
|
hostname = "psydnd.org";
|
||||||
|
include = config.age.secrets.inadyn-porkbun.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Firewall configuration
|
# Firewall configuration
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 iUaRGg mRkPNMBvRfbwb3GjcWWJ42RiJn4wxMdczvL2OJFagkY
|
|
||||||
jCqCSE2MMx74ZvXabmyHfI4jC6lwhtgrTSqjAflUksw
|
|
||||||
-> vH/-grease []_Tx" cZfV JHS /x/
|
|
||||||
SK1DATphyeQv8pjoNXTlQrRKQwn8oItd6xrhSic7fmxzmuKTQiPE
|
|
||||||
--- ObilbWkclfLnmjVql03OamXitnFgYnzfoZ04oq3XO1k
|
|
||||||
<EFBFBD>iy<13>1k{<7B><>OJ3<1F>H<EFBFBD>N<><4E><11><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%y<><1D><><0C><>JA<4A>8<EFBFBD><38>
|
|
||||||
'<27>N<EFBFBD><4E>%<25><><EFBFBD><EFBFBD><EFBFBD>L@<12>6 &<26><>
|
|
||||||
6
secrets/inadyn-duckdns.age
Normal file
6
secrets/inadyn-duckdns.age
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 iUaRGg XMrsd1RQcDq/SpFtqpB4Gj1keCvJsMB+VA58qZirYA4
|
||||||
|
tf8NQzoEYJXlKBjtX4ZplaPQv51RCW9yHulvKZB8c8g
|
||||||
|
--- 5wZntAZCQ4pGYrgDFd63w6Y+Taaatcw5z0tDSvShi30
|
||||||
|
<EFBFBD><EFBFBD>4<EFBFBD><EFBFBD><EFBFBD>Ɖq3<EFBFBD>&
|
||||||
|
><0E>4<EFBFBD><34>J<EFBFBD>?<3F><0F><>QW<51>jZ<:'<<16>x(<28>Y<16>i<EFBFBD>ZDO#<23>w<7F><77>R<EFBFBD><52><EFBFBD>O@2<>cAj (f<><66><EFBFBD><EFBFBD>M<EFBFBD><4D><EFBFBD>
|
||||||
6
secrets/inadyn-porkbun.age
Normal file
6
secrets/inadyn-porkbun.age
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 iUaRGg mjl2NVhvZ+j87U5JLDcun7Lr7nUD9/Ci2mbZbcvn6hk
|
||||||
|
xzJaZDEwcZmd/qUGMWoFsj6ylsevriwlwVi8znyRpSk
|
||||||
|
--- IoNqE7dzWBlVySCznCJDS4KEOfBPazWvdzK2GmyQyIw
|
||||||
|
<EFBFBD>h<EFBFBD><EFBFBD>_CA<43>~~<7E><><EFBFBD>;<11>nDt]<5D>]<><7F><EFBFBD>g<EFBFBD><67>¨<><C2A8><EFBFBD>
|
||||||
|
<EFBFBD><EFBFBD><EFBFBD>|4<>M6Y
|
||||||
@@ -6,7 +6,6 @@ in
|
|||||||
"syncthing.age".publicKeys = [ zion ];
|
"syncthing.age".publicKeys = [ zion ];
|
||||||
"msmtp.age".publicKeys = [ zion ];
|
"msmtp.age".publicKeys = [ zion ];
|
||||||
"gitea.age".publicKeys = [ zion ];
|
"gitea.age".publicKeys = [ zion ];
|
||||||
"ddclient.age".publicKeys = [ zion ];
|
|
||||||
"miniflux.age".publicKeys = [ zion ];
|
"miniflux.age".publicKeys = [ zion ];
|
||||||
"git.age".publicKeys = [ zion ];
|
"git.age".publicKeys = [ zion ];
|
||||||
"dendrite.age".publicKeys = [ zion ];
|
"dendrite.age".publicKeys = [ zion ];
|
||||||
@@ -17,4 +16,6 @@ in
|
|||||||
"facebook.age".publicKeys = [ zion ];
|
"facebook.age".publicKeys = [ zion ];
|
||||||
"signal.age".publicKeys = [ zion ];
|
"signal.age".publicKeys = [ zion ];
|
||||||
"acme.age".publicKeys = [ zion ];
|
"acme.age".publicKeys = [ zion ];
|
||||||
|
"inadyn-duckdns.age".publicKeys = [ zion ];
|
||||||
|
"inadyn-porkbun.age".publicKeys = [ zion ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user