ddclient for cloudflare
This commit is contained in:
1 parent
8a253f82c9
commit
0388875455
8 files changed
+35
-1
No files matched your search
@@ -160,6 +160,7 @@
|
||||
skyg-secrets = {
|
||||
buzz-env = ./secrets/buzz-env.age;
|
||||
cloudflare-dns = ./secrets/cloudflare-dns.age;
|
||||
cloudflare-ddclient = ./secrets/cloudflare-ddclient.age;
|
||||
portainer-agent-minipc1 = ./secrets/portainer-agent-minipc1.age;
|
||||
portainer-agent-bigbox1 = ./secrets/portainer-agent-bigbox1.age;
|
||||
portainer-tls-key = ./secrets/portainer-tls-key.age;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ config, skygUtils, ... }:
|
||||
let
|
||||
nfsVolume = skygUtils.container-services.nfs.tnas1;
|
||||
nfsVolume = skygUtils.container-services.nfsVols.tnas1;
|
||||
app = config.skyg.internalNetworkingMap.apps.buzz;
|
||||
buzz = {
|
||||
domain = app.effectiveDns;
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{ config, skyg-secrets, ... }:
|
||||
{
|
||||
age.secrets.cloudflare-ddclient.file = skyg-secrets.cloudflare-ddclient;
|
||||
|
||||
services.ddclient = {
|
||||
enable = true;
|
||||
protocol = "cloudflare";
|
||||
username = "token";
|
||||
passwordFile = config.age.secrets.cloudflare-ddclient.path;
|
||||
usev6 = "disabled";
|
||||
domains = [ ];
|
||||
extraConfig = ''
|
||||
zone=sosnovsky.ca
|
||||
*.sosnovsky.ca,*.home.sosnovsky.ca,home.sosnovsky.ca
|
||||
|
||||
zone=skyg.ca
|
||||
*.skyg.ca
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
./gitea-container.nix
|
||||
./public-gitea.nix
|
||||
./acme.nix
|
||||
./ddclient.nix
|
||||
./portainer.nix
|
||||
./iu.nix
|
||||
./audiobookshelf.nix
|
||||
|
||||
@@ -32,6 +32,9 @@ in
|
||||
# Cloudflare DNS API token for ACME DNS-01 (skyg.server.acme)
|
||||
"secrets/cloudflare-dns.age".publicKeys = [ ari minipc1 minipc3 ];
|
||||
|
||||
# Cloudflare DNS API token for ddclient dynamic DNS (hl-minipc1)
|
||||
"secrets/cloudflare-ddclient.age".publicKeys = [ ari minipc1 ];
|
||||
|
||||
# stack compose definition — minipc2
|
||||
"secrets/stack1.age".publicKeys = [ ari minipc2 ];
|
||||
"secrets/stack2.age".publicKeys = [ ari minipc2 ];
|
||||
|
||||
@@ -19,6 +19,7 @@ Age-encrypted secret files managed with [agenix](https://github.com/ryantm/ageni
|
||||
| `buildbot-gitea-token.age` | Gitea access token for buildbot (minipc3) |
|
||||
| `buildbot-gitea-webhook-secret.age` | Gitea webhook secret for buildbot (minipc3) |
|
||||
| `buildbot-gitea-oauth-secret.age` | Gitea OAuth2 client secret for buildbot (minipc3) |
|
||||
| `cloudflare-ddclient.age` | Cloudflare DNS API token for ddclient (minipc1) |
|
||||
|
||||
The authoritative list of names + authorized keys is `secrets.nix` in the repo root.
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 CIR0mA CxgrXCVHrJnqoGzZEz0oKGie2XEHLu809dcFhmIUGA4
|
||||
X25TGuWbIwRMkAE9EEedn9hb6bWCuMVmJi+61d5KIys
|
||||
-> ssh-ed25519 LuJNQA kpVx1opi4cjdpzic4Xg8phRyR/AHZnVpsfqj62FBvFc
|
||||
1siGAQsjaKNzx2XRrszSpjz75mzsOm23ya+QXSZFXtg
|
||||
--- SZyPEECt2N8gsCZqrBJY6he5OohAZBJxh/uQs8BKWBE
|
||||
çÒX®ÂåÀX„=ê�ÍØágÌÇ!©Y{ �‡Þ␍“ºÒ�fÓÚÍàÀð§wìŒ
|
||||
Â?~gæK�O´dXÍiü©„.×™šEÄíá
|
||||
Binary file not shown.
Reference in new issue
Block a user