2025-02-06 00:51:06 -06:00
|
|
|
{ instancesFunctions }:
|
|
|
|
let
|
|
|
|
inherit (instancesFunctions)
|
2025-01-08 19:06:14 -06:00
|
|
|
domain0
|
|
|
|
sslPath
|
|
|
|
sopsPath
|
|
|
|
;
|
2024-11-10 01:29:37 -06:00
|
|
|
|
|
|
|
syncthingLabel = "Syncthing";
|
|
|
|
syncthingName = "syncthing";
|
2025-02-06 00:51:06 -06:00
|
|
|
in
|
|
|
|
{
|
2024-11-10 01:29:37 -06:00
|
|
|
label = syncthingLabel;
|
|
|
|
name = syncthingName;
|
|
|
|
sops = {
|
|
|
|
path0 = "${sopsPath}/${syncthingName}";
|
|
|
|
};
|
|
|
|
subdomain = syncthingName;
|
|
|
|
ports = {
|
|
|
|
port0 = 8388; # Syncthing (WebUI)
|
|
|
|
port1 = 21027; # Syncthing (Discovery)
|
|
|
|
port2 = 22000; # Syncthing (Transfer)
|
|
|
|
};
|
|
|
|
ssl = {
|
|
|
|
cert = "${sslPath}/${syncthingName}.${domain0}/fullchain.pem";
|
|
|
|
key = "${sslPath}/${syncthingName}.${domain0}/key.pem";
|
|
|
|
};
|
|
|
|
}
|