1

Torrent 客户端 qtorrent 具有 Web GUI。

一台服务器上的 Torrent 客户端具有唯一的 IP 地址。具有唯一 IP 地址的 Nginx 反向代理设置。

已设置 Nginx 反向代理以指向具有特定端口的子域地址内部 ip 地址(通过letsencrypt 进行流量HTTPS)。

可以加载 Torrent 客户端 GUI 登录页面,但没有页面格式(下面提供的图像)。

在此处输入图像描述

在此处输入图像描述

在本地网络上时可以通过本地 IP 地址访问 Torrent 客户端 GUI:端口。

在站点中输入登录详细信息(通过域地址 sub.example.com 访问)时,会加载一个空白的白色网页,并且网址更改为“ https://www.sub.example.com/?username= UNameExample&password=PASSWORDExample "

关于在哪里确认或检查配置的任何建议。

4

1 回答 1

0

以下适用于 qtorrent 的 Nginx 反向代理设置。

原来在这里找到的解决方案。

                #
            #Code below is for SSL
            #
            server {
                listen 80;
                listen [::]:80;
                server_name bittorrent.example.com www.bittorrent.example.com;

                include snippets/letsencrypt.conf;
                return 301 https://$host$request_uri;
            }


            server {
               listen 443 ssl http2;
               server_name bittorrent.example.com;

               ssl_certificate /etc/letsencrypt/live/bittorrent.example.com/fullchain.pem;
               ssl_certificate_key /etc/letsencrypt/live/bittorrent.example.com/privkey.pem;
               ssl_trusted_certificate /etc/letsencrypt/live/bittorrent.example.com/chain.pem;
               include snippets/ssl.conf;
               include snippets/letsencrypt.conf;

               return 301 https://www.bittorrent.example.com$request_uri;
            }

            server {
               listen 443 ssl http2;
               server_name www.bittorrent.example.com;

               ssl_certificate /etc/letsencrypt/live/bittorrent.example.com/fullchain.pem;
               ssl_certificate_key /etc/letsencrypt/live/bittorrent.example.com/privkey.pem;
               ssl_trusted_certificate /etc/letsencrypt/live/bittorrent.example.com/chain.pem;
               include snippets/ssl.conf;
               include snippets/letsencrypt.conf;

               location / {
                proxy_pass http://192.168.0.10:9091/;
                proxy_set_header        X-Forwarded-Host        $server_name:$server_port;
                proxy_hide_header       Referer;
                proxy_hide_header       Origin;
                proxy_set_header        Referer                 '';
                proxy_set_header        Origin                  '';
                add_header              X-Frame-Options         "SAMEORIGIN";
               }
            }
于 2019-01-06T11:05:23.990 回答