This commit is contained in:
Lukas Wurzinger 2024-08-18 23:15:16 +02:00
parent e3b84b9c65
commit 94a1ae4793
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
{config, ...}: let
inherit (config.networking) domain;
virtualHostName = "sync.${domain}";
in {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
};
services.nginx.virtualHosts.${virtualHostName} = {
enableACME = true;
forceSSL = true;
quic = true;
locations."/".proxyPass = "http://${config.services.syncthing.guiAddress}";
};
}

View file

@ -5,7 +5,7 @@ in {
enable = true;
systemService = true;
openDefaultPorts = true;
guiAddress = "0.0.0.0:${builtins.toString guiPort}";
guiAddress = "127.0.0.1:${builtins.toString guiPort}";
};
networking.firewall.allowedTCPPorts = [guiPort];