nitter readonly deployment
This commit is contained in:
parent
712e488c89
commit
f2a8ed2065
10
dns/dns.nix
10
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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue