mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
Credits to @dssink from #8312
parent
3ed596d433
commit
fe92d66c7a
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||
location /qbt/ {
|
||||
proxy_pass http://127.0.0.1:8080/;
|
||||
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"; # 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";`
|
Loading…
Reference in a new issue