Syncthing: Difference between revisions

imported>Senorsmile
adding dataDir and configDir in second example as they're required
imported>Zwerdlds
m Added section on public-facing GUI and firewall ports to enable.
Line 49: Line 49:
   };
   };
};
};
</syntaxHighlight>
If running a headless server, you should also change guiAddress to a publicly visible one (or just 0.0.0.0:8384, for example).
You will also probaly have to open a few ports in the firewall:
<syntaxHighlight lang="nix">
  # Syncthing ports
  networking.firewall.allowedTCPPorts = [ 8384 22000];
  networking.firewall.allowedUDPPorts = [ 22000 21027];
</syntaxHighlight>
</syntaxHighlight>