I wrote a blog post about the setup a couple of years ago: https://www.jonblack.me/using-freenas-and-syncthing-to-autom...