syncthing: bind to 127.0.0.1

This commit is contained in:
Motiejus Jakštys 2024-01-25 08:21:35 +02:00
parent 513bb5be84
commit ab052cd45d
1 changed files with 0 additions and 7 deletions

View File

@ -6,7 +6,6 @@
}: let
cfg = config.mj.services.syncthing;
guiPort = 8384;
devices = {
"mtwork".id = "3XRWDGO-M42WJAK-MGR24VJ-B5TNQXH-7R5YNFI-MAGXALL-XFENVI4-XYDPMAM";
"fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
@ -123,13 +122,7 @@ in {
services.syncthing = {
inherit (cfg) enable user group dataDir;
openDefaultPorts = true;
guiAddress = let
fqdn = with config.networking; "${hostName}.${domain}";
jakstIP = lib.getAttrFromPath [fqdn "jakstIP"] myData.hosts;
guiPortStr = builtins.toString guiPort;
in "${jakstIP}:${guiPortStr}";
settings = {
gui.insecureAdminAccess = true;