Hi
@dropio, similar but not the same. I do not really understand why his jail is hosting the Syncthing web page. Also I do not need an ssh connection to my Syncthing jail. Following you will find roughly the steps I went through to set up my jail:
1. Create a new base jail for Syncthing (named syncthing; before that I renamed the old plugin (iocage rename old_plugin_name new_plugin_name))
2. Via ssh to my TrueNAS box (alternatively via the shell button in the Jails section) I did:
iocage console syncthing
3. (in new jail)
pkg update, pkg install syncthing, pkg install nginx
4. Look into the file
/usr/local/etc/syncthing/config.xml and change <address>127.0.0.1:8384</address> into
<address>0.0.0.0:8384</address>
5. To /etc/rc.conf add the following:
syncthing_enable="YES"
nginx_enable="YES"
hostname="syncthing"
don't know of the following lines are there by default:
# Enable IPv6
ipv6_activate_all_interfaces="YES"
ifconfig_epair0b="SYNCDHCP"
6. Exit jail console;
iocage set exec_jail_user=syncthing syncthing and
iocage set boot=on syncthing
7. Then you should ssh into your old plugin and copy the contents of
/usr/local/etc/nginx/nginx.conf; ssh into you new jail and set up the same file there accordingly.
8. Then (inside the new jail via ssh) try:
service syncthing start and
service nginx start (or just restart the whole jail) and check if you can reach the syncthing web page (
http://xxx.xxx.xxx.xxx/syncthing)
9. Stop the jail, add your mountpoints (see video for that) and set up Syncthing
Hopefully I didn't forget anything.
Good luck and have a great day!
Edit: Added 6. Exit jail console;
iocage set exec_jail_user=syncthing syncthing and
iocage set boot=on syncthing