syncthing: bind to 127.0.0.1
This commit is contained in:
parent
513bb5be84
commit
ab052cd45d
|
@ -6,7 +6,6 @@
|
||||||
}: let
|
}: let
|
||||||
cfg = config.mj.services.syncthing;
|
cfg = config.mj.services.syncthing;
|
||||||
|
|
||||||
guiPort = 8384;
|
|
||||||
devices = {
|
devices = {
|
||||||
"mtwork".id = "3XRWDGO-M42WJAK-MGR24VJ-B5TNQXH-7R5YNFI-MAGXALL-XFENVI4-XYDPMAM";
|
"mtwork".id = "3XRWDGO-M42WJAK-MGR24VJ-B5TNQXH-7R5YNFI-MAGXALL-XFENVI4-XYDPMAM";
|
||||||
"fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
|
"fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
|
||||||
|
@ -123,13 +122,7 @@ in {
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
inherit (cfg) enable user group dataDir;
|
inherit (cfg) enable user group dataDir;
|
||||||
|
|
||||||
openDefaultPorts = true;
|
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 = {
|
settings = {
|
||||||
gui.insecureAdminAccess = true;
|
gui.insecureAdminAccess = true;
|
||||||
|
|
Loading…
Reference in New Issue