Magnet Link + HTTPS + Reverse Proxy on Web UI

Linux specific questions, problems.
Post Reply
qwerty

Magnet Link + HTTPS + Reverse Proxy on Web UI

Post by qwerty »

Hi, I've setup my qbittorrent WebUI using docker linuxserver/qbittorrent.

I currently use an nginx reverse proxy (specifically jc21/nginx-proxy-manager, works fine with other apps), and I manage to access the qbit webui via the proxy. The proxy also manages SSL automatically (acme).

What I'm trying to get working is the "Register for magnet link" function. Without the proxy, when I access it directly via my local network, it says I need to serve the site over HTTPS. So, when it goes through the proxy, SSL is enabled and HTTPS is enabled. However, when I click on Register for magnet link, nothing happens when accessed over the proxy. No console printouts or anything, no "To use this feature, the WebUI needs to be accessed over HTTPS". Just nothing. What can I do to fix this? I haven't changed any configs from default in qbittorrent WebUI. Is there something I need to modify here?

Nginx conf

Code: Select all

server {
  set $forward_scheme http;
  set $server         "192.168.x.x";
  set $port           xx;

  listen 80;
#listen [::]:80;

listen 443 ssl http2;
#listen [::]:443;

  server_name qbittorrent.domain.com;

  # Let's Encrypt SSL
  include conf.d/include/letsencrypt-acme-challenge.conf;
  include conf.d/include/ssl-ciphers.conf;
  ssl_certificate /etc/letsencrypt/live/npm-21/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/npm-21/privkey.pem;

  # Block Exploits
  include conf.d/include/block-exploits.conf;

  # HSTS (ngx_http_headers_module is required) (31536000 seconds = 1 year)
  add_header Strict-Transport-Security "max-age=31536000;includeSubDomains; preload" always;

  access_log /data/logs/proxy_host-14.log proxy;

  location / {

    # Force SSL
    include conf.d/include/force-ssl.conf;

  # HSTS (ngx_http_headers_module is required) (31536000 seconds = 1 year)
  add_header Strict-Transport-Security "max-age=31536000;includeSubDomains; preload" always;
    
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
    proxy_http_version 1.1;
    
    # Proxy!
    include conf.d/include/proxy.conf;
  }

  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}
Also, what's the way to pass magnet links to the server if I'm using chrome? Is there an extension or something?
Post Reply