Install syncthing:

- [Reference](https://docs.syncthing.net/intro/getting-started.html)
- For windows, just extract directly into the `Program Files` folder

Arch

tar -xzf syncthing-linux-amd64-v2.0.13.tar.gz

Ubuntu

Reference

Windows

Fully Managed Window Install

Remote Access

Add token from 1password to env file

ssh production
sudo mkdir -p /etc/strelaysrv
sudo tee /etc/strelaysrv/strelaysrv.env > /dev/null <<'EOF'
TOKEN=<token here>
EOF

Forward this port to production pi on router: Unify Site Manager -> Dream Machine Pro Max -> Network Tab -> Settings (bottom left) -> Overview -> Port Forwarding

# Relay Port
22067

Relay Server Reference

Run this from a DEV machine

./deploy.sh && ./deploy.sh -t production

Record the produced relay id

ssh production
journalctl --user -u strelaysrv

Manually Configure

./deploy.sh && ./deploy.sh -t production
dynamic, relay://frii.day:22067

Folders: Label:

wiki

Id:

uqcfn-ywpmk

Path:

~/deploy/wiki-data

Networking Mental Model For syncthing

Remote Device → Addresses -> How do I try to reach them?

Sync Protocol Listen Addresses -> How can they try to reach me?

Put a Relay in the middle add to both fields and you have: Sync Protocol Listen Addresses -> syncthing connects to the relay and waits for pairing Remote Device → Addresses -> tell the relay you would like to use it as a connection (thus lets pair)

Troubleshooting

Unable to connect to relay

Restarting syncthing on Windows appears to fix this issue