Syncthing: Difference between revisions

Nodupe (talk | contribs)
System setup: Added information on how to open the firewall port so syncthing web gui is available through the network.
Advanced: Don't (implicitly) recommend password in config
 
(2 intermediate revisions by one other user not shown)
Line 42: Line 42:
   };
   };
};
};
</syntaxhighlight>
</syntaxhighlight>Note: If you want to use [[Agenix]] to set the GUI password use [https://search.nixos.org/options?channel=unstable&query=syncthing&show=services.syncthing.guiPasswordFile services.syncthing.guiPasswordFile] instead of setting.gui.password.


==== Advanced ====
==== Advanced ====
Line 51: Line 51:
   enable = true;
   enable = true;
   openDefaultPorts = true;
   openDefaultPorts = true;
  guiPasswordFile = "/etc/syncthing-gui-password";
   settings = {
   settings = {
     gui = {
     gui.user = "myuser";
      user = "myuser";
      password = "mypassword";
    };
     devices = {
     devices = {
       "device1" = { id = "DEVICE-ID-GOES-HERE"; };
       "device1" = { id = "DEVICE-ID-GOES-HERE"; };
Line 73: Line 71:
   };
   };
};
};
</syntaxhighlight>
</syntaxhighlight>Note: As per syncthing Device ids are not sensitive and should be okay to keep in your config file.<ref>[https://docs.syncthing.net/users/faq.html#should-i-keep-my-device-ids-secret Should I keep my device IDs secret?]</ref>


== Tips and tricks ==
== Tips and tricks ==