diff --git a/dns/dns.nix b/dns/dns.nix index 6230354..c3a2375 100644 --- a/dns/dns.nix +++ b/dns/dns.nix @@ -9,6 +9,14 @@ data = ["100::"]; }; }; + "uptime" = { + a = { + data = ["91.107.206.145"]; + }; + aaaa = { + data = ["2a01:4f8:c012:5ec6::"]; + }; + }; "cluster" = { a = { data = ["100.77.43.133" "100.121.5.8" "100.106.229.20"]; @@ -36,7 +44,6 @@ "request-media" "tools" "ytproxy" - "nitter" "changedetect" ] (name: {cname.data = "cluster";}) // lib.attrsets.genAttrs [ @@ -50,6 +57,7 @@ "proxmox" "pw" "tokyo" + "nitter" ] (name: { cname = { ttl = 0; diff --git a/homelab/nitter.nix b/homelab/nitter.nix index f989fe1..5f69091 100644 --- a/homelab/nitter.nix +++ b/homelab/nitter.nix @@ -15,6 +15,10 @@ in port = 8080; targetPort = 8080; }; + ports.readonly = { + port = 8081; + targetPort = 8081; + }; }; }; kubernetes.resources.deployments.nitter.spec = { @@ -42,7 +46,24 @@ in subPath = "guest_accounts.json"; } ]; - ports.tlshttp.containerPort = 8080; + ports.http.containerPort = 8080; + }; + nitter-ro = { + image = nitterImage; + imagePullPolicy = "Always"; + volumeMounts = [ + { + name = "config"; + mountPath = "/src/nitter.conf"; + subPath = "nitter-ro.conf"; + } + { + name = "accounts"; + mountPath = "/src/guest_accounts.json"; + subPath = "guest_accounts.json"; + } + ]; + ports.http.containerPort = 8081; }; }; };