mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
Update reverse proxy settings
parent
13e942ed9a
commit
a998759f0b
2 changed files with 13 additions and 10 deletions
1
Home.md
1
Home.md
|
@ -64,6 +64,7 @@ The wiki source code is hosted at https://github.com/qbittorrent/wiki and is acc
|
||||||
### Reverse proxy setup for WebUI access
|
### Reverse proxy setup for WebUI access
|
||||||
|
|
||||||
* [NGINX](https://github.com/qbittorrent/qBittorrent/wiki/NGINX-Reverse-Proxy-for-Web-UI)
|
* [NGINX](https://github.com/qbittorrent/qBittorrent/wiki/NGINX-Reverse-Proxy-for-Web-UI)
|
||||||
|
(canonical source for reverse proxy settings)
|
||||||
* [Microsoft IIS ARR](https://github.com/qbittorrent/qBittorrent/wiki/IIS-ARR-Reverse-Proxy)
|
* [Microsoft IIS ARR](https://github.com/qbittorrent/qBittorrent/wiki/IIS-ARR-Reverse-Proxy)
|
||||||
* [Traefik](https://github.com/qbittorrent/qBittorrent/wiki/Traefik-Reverse-Proxy-for-Web-UI)
|
* [Traefik](https://github.com/qbittorrent/qBittorrent/wiki/Traefik-Reverse-Proxy-for-Web-UI)
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
This configuration allows you to use NGINX as a reverse proxy for the WebUI listening on a local address to expose it outside of your LAN, on the Web. It is assumed that your WebUI is configured to be accessible at `http://127.0.0.1:30000/`, and you wish to be able to access it outside of your LAN at `mywebsite.com/qbt`. Then, in the NGINX configuration used to serve `mywebsite.com`, your `location /qbt/` stanza should have the following settings:
|
This configuration allows you to use NGINX as a reverse proxy for the WebUI listening on a local address to expose it outside of your LAN, on the Web. \
|
||||||
|
It is assumed that your WebUI is configured to be accessible at `http://127.0.0.1:30000/`, and you wish to be able to access it outside of your LAN at `mywebsite.com/qbt`. \
|
||||||
|
Then, in the NGINX configuration used to serve `mywebsite.com`, your `location /qbt/` stanza should have the following settings:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
location /qbt/ {
|
location /qbt/ {
|
||||||
proxy_pass http://127.0.0.1:30000/;
|
proxy_pass http://127.0.0.1:30000/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
proxy_set_header Host 127.0.0.1:30000;
|
# headers recognized by qBittorrent
|
||||||
|
proxy_set_header Host $proxy_host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
# not used by qBittorrent
|
|
||||||
#proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
#proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
|
|
||||||
# optionally, you can adjust the POST request size limit, to allow adding a lot of torrents at once
|
# optionally, you can adjust the POST request size limit, to allow adding a lot of torrents at once
|
||||||
#client_max_body_size 100M;
|
#client_max_body_size 100M;
|
||||||
|
|
||||||
|
# No longer required since qBittorrent v5.1:
|
||||||
# Since v4.2.2, is possible to configure qBittorrent
|
# Since v4.2.2, is possible to configure qBittorrent
|
||||||
# to set the "Secure" flag for the session cookie automatically.
|
# to set the "Secure" flag for the session cookie automatically.
|
||||||
# However, that option does nothing unless using qBittorrent's built-in HTTPS functionality.
|
# However, that option does nothing unless using qBittorrent's built-in HTTPS functionality.
|
||||||
|
@ -28,13 +29,14 @@ location /qbt/ {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: If you find yourself seeing `WebAPI login failure. Reason: IP has been banned, IP: 127.0.0.1` and needing to restart qBittorrent, you may want to set the ban after failure count to `0` which will disable it.
|
Note: If you find yourself seeing `WebAPI login failure. Reason: IP has been banned, IP: 127.0.0.1` and needing to restart qBittorrent,
|
||||||
|
you may want to set the ban after failure count to `0` which will disable it.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Obsolete directives, no longer needed when using recent qBittorrent versions
|
Obsolete directives, no longer needed when using recent qBittorrent versions:
|
||||||
|
|
||||||
- No longer required/discouraged since v4.1.2:
|
- No longer required and discouraged since v4.1.2:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
# The following directives effectively nullify Cross-site request forgery (CSRF)
|
# The following directives effectively nullify Cross-site request forgery (CSRF)
|
||||||
|
|
Loading…
Reference in a new issue