Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found no option to connect syncthing using username and password #21

Open
axel-verse opened this issue Jul 5, 2018 · 2 comments
Open

Comments

@axel-verse
Copy link

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?

@icaruseffect
Copy link
Owner

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:

  1. find the local ".config" dir
  2. extract the API key from the syncthing config
  3. 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.

@icaruseffect
Copy link
Owner

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants