2023-09-19 17:53:44 +01:00
|
|
|
let
|
2023-09-20 18:17:50 +01:00
|
|
|
internalWireGuard = import ../wireguard/chaosInternalWireGuard.nix;
|
2023-09-19 17:53:44 +01:00
|
|
|
ports = import ./pipedClusterPorts.nix;
|
|
|
|
in rec {
|
|
|
|
inherit ports;
|
|
|
|
|
|
|
|
hosts = {
|
|
|
|
# map of hostname to config for cluster node
|
|
|
|
"piped-fi" = rec {
|
2023-09-21 05:06:27 +01:00
|
|
|
ip = "${internalWireGuard.hosts.hetzner-arm.ip}";
|
2023-09-19 17:53:44 +01:00
|
|
|
|
2023-09-21 05:06:27 +01:00
|
|
|
# ssh -L 3014:127.0.0.1:3014 -L 26257:127.0.0.1:26257 hetzner-arm
|
2023-09-19 17:53:44 +01:00
|
|
|
joinString = "${ip}:${toString ports.cockroachDB}";
|
|
|
|
advertiseAddr = joinString;
|
|
|
|
|
2023-09-21 05:06:27 +01:00
|
|
|
resticName = "piped-finland";
|
2023-09-19 17:53:44 +01:00
|
|
|
resticBucket = "Piped-Finland";
|
|
|
|
baseDomain = "piped-fi.owo.monster";
|
|
|
|
};
|
|
|
|
|
|
|
|
"piped-uk" = rec {
|
|
|
|
ip = "${internalWireGuard.hosts.raspberry.ip}";
|
|
|
|
# ssh -L 3014:127.0.0.1:3014 -L 26257:127.0.0.1:26257 raspberry
|
|
|
|
joinString = "${ip}:${toString ports.cockroachDB}";
|
|
|
|
advertiseAddr = joinString;
|
2023-09-21 05:06:27 +01:00
|
|
|
resticName = "piped-uk";
|
2023-09-20 18:17:50 +01:00
|
|
|
resticBucket = "Piped-UK";
|
2023-09-19 17:53:44 +01:00
|
|
|
baseDomain = "piped-uk.owo.monster";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|