mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 05:14:41 -05:00
40 lines
706 B
Nix
Executable file
40 lines
706 B
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
inherit (moduleFunctions.instancesFunctions)
|
|
domain0
|
|
sslPath
|
|
sopsPath
|
|
synologyName
|
|
;
|
|
|
|
label = "Syncthing";
|
|
name = "syncthing";
|
|
domain = "${name}.${domain0}";
|
|
in
|
|
{
|
|
label = label;
|
|
name = name;
|
|
short = "Sync";
|
|
sops = {
|
|
path0 = "${sopsPath}/${name}";
|
|
};
|
|
domains = {
|
|
url0 = domain;
|
|
};
|
|
subdomain = name;
|
|
tags = [
|
|
name
|
|
synologyName
|
|
"sync"
|
|
"thing"
|
|
];
|
|
ports = {
|
|
port0 = 8388; # Syncthing (WebUI)
|
|
port1 = 21027; # Syncthing (Discovery)
|
|
port2 = 22000; # Syncthing (Transfer)
|
|
};
|
|
ssl = {
|
|
cert = "${sslPath}/${name}.${domain0}/fullchain.pem";
|
|
key = "${sslPath}/${name}.${domain0}/key.pem";
|
|
};
|
|
}
|