fix
This commit is contained in:
parent
e3b84b9c65
commit
94a1ae4793
18
hosts/abacus/syncthing.nix
Normal file
18
hosts/abacus/syncthing.nix
Normal 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}";
|
||||
};
|
||||
}
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue