32 lines
934 B
Nix
32 lines
934 B
Nix
let
|
|
internalWireGuard = import ../wireguard/chaosInternalWireGuard.nix;
|
|
ports = import ./pipedClusterPorts.nix;
|
|
in rec {
|
|
inherit ports;
|
|
|
|
hosts = {
|
|
# map of hostname to config for cluster node
|
|
"piped-fi" = rec {
|
|
ip = "${internalWireGuard.hosts.hetzner-arm.ip}";
|
|
|
|
# ssh -L 3014:127.0.0.1:3014 -L 26257:127.0.0.1:26257 hetzner-arm
|
|
joinString = "${ip}:${toString ports.cockroachDB}";
|
|
advertiseAddr = joinString;
|
|
|
|
resticName = "piped-finland";
|
|
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;
|
|
resticName = "piped-uk";
|
|
resticBucket = "Piped-UK";
|
|
baseDomain = "piped-uk.owo.monster";
|
|
};
|
|
};
|
|
}
|