mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
update proxy configuration
parent
b0eaab7f57
commit
62df99e855
1 changed files with 14 additions and 10 deletions
|
@ -111,18 +111,22 @@ server {
|
|||
location /qbt/ {
|
||||
# you can use any other port other than 30000 as long as it is available on your system
|
||||
proxy_pass http://127.0.0.1:30000/;
|
||||
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 '';
|
||||
|
||||
# if you use the "enable host header validation" setting with 127.0.0.1 in the "server domains" text box
|
||||
# don't forget to change the port number to the one you are actually using.
|
||||
# proxy_set_header Host 127.0.0.1:30000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
|
||||
# not needed since 4.1.0
|
||||
# add_header X-Frame-Options "SAMEORIGIN";
|
||||
# The following directives effectively nullify Cross-site request forgery (CSRF)
|
||||
# protection mechanism in qBittorrent, only use them when you encountered connection problems.
|
||||
# You should consider disable "Enable Cross-site request forgery (CSRF) protection"
|
||||
# setting in qBittorrent instead of using these directives to tamper the headers.
|
||||
# The setting is located under "Options -> WebUI tab" in qBittorrent since v4.1.2.
|
||||
#proxy_hide_header Referer;
|
||||
#proxy_hide_header Origin;
|
||||
#proxy_set_header Referer '';
|
||||
#proxy_set_header Origin '';
|
||||
|
||||
# Not needed since qBittorrent v4.1.0
|
||||
#add_header X-Frame-Options "SAMEORIGIN";
|
||||
|
||||
# in a future version of qBittorrent (probably 4.2.2),
|
||||
# it will be possible to set the "Secure" flag for the session cookie,
|
||||
|
|
Loading…
Reference in a new issue