niksos/hosts/chmura/syncthing.nix

25 lines
521 B
Nix
Raw Normal View History

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;
};
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 ];
}