Syncthing: Difference between revisions
→Troubleshooting: On the syncthing.settings option and the syncthing-init service |
m add requirement for accessing web interface from another computer (bind to 0.0.0.0 instead of 127.0.0.1) |
||
| Line 22: | Line 22: | ||
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. | 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 | If accessing the web interface from other networked computers you will need to change the gui bind address and open a TCP port:<syntaxhighlight lang="nix"> | ||
# Example for /etc/nixos/configuration.nix | |||
services.syncthing = { | |||
enable = true; | |||
openDefaultPorts = true; # Open ports in the firewall for Syncthing. (NOTE: this will not open syncthing gui port) | |||
guiAddress = "0.0.0.0:8384"; # By default syncthing only listens to localhost | |||
}; | |||
# port 8384 is the default port to allow access from the network. | # port 8384 is the default port to allow access from the network. | ||
networking.firewall.allowedTCPPorts = [ 8384 ]; | networking.firewall.allowedTCPPorts = [ 8384 ]; | ||