Syncthing: Difference between revisions
m Cleanup |
Cleanup |
||
Line 4: | Line 4: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.syncthing | services.syncthing = { | ||
enable = true; | |||
settings.gui = { | |||
user = "myuser"; | |||
password = "mypassword"; | |||
}; | |||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ . | You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ and authenticate using the credentials above. | ||
== Configuration == | |||
Follow the official ''[https://docs.syncthing.net/intro/getting-started.html Getting Started]'' guide to get started. | Follow the official ''[https://docs.syncthing.net/intro/getting-started.html Getting Started]'' guide to get started. | ||
Note: using a declarative configuration will overwrite files in <code>configDir</code>. | Note: using a declarative configuration will overwrite files in <code>configDir</code>. | ||
Line 72: | Line 78: | ||
Syncthing uses port 22000 to facilitate discovery of nodes on the local area network. If this port is blocked by the firewall, nodes will have to go all the way to the announce servers, then use a bridge to tunnel through NAT. This is much slower than just sending data in a "node1 -> router -> node2" path. | Syncthing uses port 22000 to facilitate discovery of nodes on the local area network. If this port is blocked by the firewall, nodes will have to go all the way to the announce servers, then use a bridge to tunnel through NAT. This is much slower than just sending data in a "node1 -> router -> node2" path. | ||
=== Declarative node IDs === | === Declarative node IDs === |