hello so im working on a project , lets say i currently have 3 devices and using the api i made so they connect to each other i just have to put their ID there , is there a way i dont need to put every id in my code , like they automaticly connect to each other using some universal ID idk , but its not really an option right now to everytime to put the ID manualy in my code when new devices come
It’s not only an option, it’s required You can listen to device rejected events to see when another device wants to connect and then add that device as appropriate. But Syncthing does not have an internal mechanism for this, it needs to be done externally.
There’s also a management daemon that already does this and some other things. I’ve been using it internally for some things for a while, but not open sourced it, but I did so now. Here you go: GitHub - kastelo/syncthing-configd: A daemon that automatically manages certain aspects of the Syncthing configuration.
It comes without support or documentation apart from the README. Maybe it can be useful and/or inspiration.
seems like somehting very usefull but do i need docker for it ? or i can run it somehow without it
i did it thank u jakob u are really helpfull
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.