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

Allow for qBittorrent WebGUI to run in HTTPS #17

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

IBNobody
Copy link

The default setup was to query the qBittorrent WebGUI over HTTP.

This is fine normally, but in order to register qBittorrent WebGUI to handle magnet links, qBittorrent needs to run in HTTPS.

This causes problems with qbittorrent-natmap. Because qBittorrent WebGUI only operates out of one port, the HTTP/HTTPS setting in qBittorrent WebGUI means that it will only respond to one or another. If we set qBittorrent WebGUI to use HTTPS, qbittorrent-natmap will be unable to query the qBittorrent WebGUI.

The solution was twofold:

  1. I added an ENV variable QBITTORRENT_SERVER_HTTP_OR_HTTPS which should be set to "http" by default and can be set to "https".
  2. I changed curl to use the "-k" option to accept self-signed certs. This option is ignored by curl commands to http targets.

I have tested this container both with and without https, and it is working for me.

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

Successfully merging this pull request may close these issues.

None yet

1 participant