I’m working on implementing a multi-user / multi-instances setup for the users of my fileserver. Therefore I’ve set up a startup script to start an instance for each of the users, configured by a simple string. I define users and their gui-ports in a config file (users=“userA:8384;userB:8385;userC8386”) and start syncthing with the according
-gui-address option. There is an apache reverse proxy set up to allow users to acces their gui via https://server/username/.
So far, so good.
What now causes work for me is to get the user instances to bind to different ports (default 2200/TCP). Configuration is easy, just adopt the line above to users=“userA:8384:2200;userB:8385:2201”.
The thing is there is no command line option in syncthing to set the protocol port. Either I setup a script that adopts every users config, what can only be done after the first start. Or I log in to every users gui and change the port - or tell the users to do so.
I would like to see a Command Line Option, let’s call it
[-protocol-address=<address>], to set or better override the syncthing protocol address/port the same way as I can set the gui-address. It would make administration (also firewalling) of multi-user/multi-instance setups easier.