Syncthing: Difference between revisions

Crdr (talk | contribs)
Syncthing removed the default folder concept after 2.0.0.
Nodupe (talk | contribs)
System setup: Added information on how to open the firewall port so syncthing web gui is available through the network.
 
Line 15: Line 15:


To install Syncthing as a system service that runs in the background and survives reboots, add the following to your <code>/etc/nixos/configuration.nix</code>:
To install Syncthing as a system service that runs in the background and survives reboots, add the following to your <code>/etc/nixos/configuration.nix</code>:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix"># Example for /etc/nixos/configuration.nix
# Example for /etc/nixos/configuration.nix
services.syncthing = {
services.syncthing = {
   enable = true;
   enable = true;
   openDefaultPorts = true; # Open ports in the firewall for Syncthing
   openDefaultPorts = true; # Open ports in the firewall for Syncthing. (NOTE: this will not open syncthing gui port)
};
};</syntaxhighlight>
Once you've rebuilt your system, Syncthing will be available as a system service. You can visit http://127.0.0.1:8384/ to configure it through the web interface.
 
If accessing the web interface from other networked computers you will need to open a tcp port:<syntaxhighlight lang="nix">
# port 8384  is the default port to allow access from the network.
networking.firewall.allowedTCPPorts = [ 8384 ];
</syntaxhighlight>
</syntaxhighlight>
Once you've rebuilt your system, Syncthing will be available as a system service. You can visit http://127.0.0.1:8384/ to configure it through the web interface.


== Configuration ==
== Configuration ==