2023-07-16 09:16:57 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "syncthing";
|
|
|
|
dataDir = "/var/lib/syncthing";
|
|
|
|
overrideDevices = true;
|
|
|
|
overrideFolders = true;
|
|
|
|
};
|
|
|
|
|
2023-07-16 09:21:03 +02:00
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."s.jacekpoz.pl".extraConfig = ''
|
|
|
|
reverse_proxy * localhost:8384
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-07-16 09:16:57 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
|
|
|
}
|