Found no option to connect syncthing using username and password
axel-verse opened this issue · 2 comments
The indicator can not connect to syncthing if use HTTPS and username+password to access syncthing's admin interface. May this issue be a feature request?
Hi, i just checked the syncthing developer docs for any indications you'd need the username+pw for connecting to the API. My guess is you don't need for fetching the information from the API but to fetch the API key.
The way it's working now is:
- find the local ".config" dir
- extract the API key from the syncthing config
- connect to the local instance via the REST API and fetch the Information
I didn't have in mind to connect to a remote instance with this little script.
The other reason could be that I never tested it via https. There is an http connection hardcoded in the variable syncthing_base. You could try to change it to https, but i don't know if there wouldn't be an error when the ssl certificate is validated.
I can try to assist you but I don't maintain this project actively anymore.
There is a fork by @0xBADEAFFE at https://github.com/0xBADEAFFE/indicator-syncthing with some nice improvements. (still no https, but some fixes for updated libraries etc.)