mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Credits to @dssink from #8312
@@ -1,14 +1,16 @@
|
|||||||
If you're using NGINX as a reverse proxy for Web UI, as of version 3.3.15, assuming your reverse proxy is local, your `location /` should have the following settings:
|
If you're using NGINX as a reverse proxy for Web UI, as of version 4.0.3, assuming your reverse proxy is local, your `location /qbt/` should have the following settings:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
location / {
|
location /qbt/ {
|
||||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
proxy_hide_header Referer;
|
proxy_set_header X-Forwarded-Host $server_name:$server_port;
|
||||||
proxy_hide_header Origin;
|
proxy_hide_header Referer;
|
||||||
proxy_set_header Referer '';
|
proxy_hide_header Origin;
|
||||||
proxy_set_header Origin '';
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header Origin '';
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN"; # see note
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
For some users, several windows in the Web UI will still be blank, such as when adding a new torrent from a URL/magnet or local file. If so, try adding the following line to the location block:
|
Note: For some users, several windows in the Web UI will still be blank, such as when adding a new torrent from a URL/magnet or local file. If so, try adding the following line to the location block:
|
||||||
|
|
||||||
`add_header X-Frame-Options "SAMEORIGIN";`
|
`add_header X-Frame-Options "SAMEORIGIN";`
|
||||||
Reference in New Issue
Block a user