cfg/host/roam/syncthing.nix
2025-12-30 13:54:59 +01:00

19 lines
319 B
Nix

{ ... }:
let
guiAddress = "127.0.0.1:8384";
in
{
services.syncthing = {
enable = true;
inherit guiAddress;
};
services.nginx = {
privateVirtualHosts."syncthing.roam.lan" = {
locations."/" = {
proxyPass = "http://${guiAddress}/";
proxyWebsockets = true;
};
};
};
}