Setup
Syncthing as TrueNAS App
In TrueNAS
- Create syncthing dataset, type Generic (not samba!)
- Owner probably needs to be 1000:1000
- Add app
- UID GID 1000
- Config storage > Host path > choose created dataset
- E.g. 4 CPUs, 8196 MB
Syncthing as Docker container
Stack config: https://github.com/one137/dockerhost-stacks/blob/main/stacks/40-syncthing.yml
Stream ports 22000 tcp/udp in NPM and add NPM to the syncthing default network.
Post install
In Syncthing UI
- Actions, Settings:
- Set device name: truenas-st
- Set GUI auth
- Edit Folder Defaults:
- Folder Path:
~/data - Ignore Patterns:
// #include .stglobalignore - Advanced: Folder Type: Receive Only
- Folder Path:
- Add Remote Device
- Choose e.g. IZD4XXX
- Sharing: Auto-accept
- Accept new device (truenas-st) from other device (IZD4XXX) and check folders to sync
- Once syncs finished, uncomment line in “ignore patterns”
For a secondary LAN syncthing instance behind a docker bridge, consider disabling Settings > Connections > traversal/discovery/relaying and specifying its address (IP of the host :22000) in the primary instance.