mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-14 02:27:24 -07:00
Cleanup redundant headers from proxy.conf
Also general cleanup of whitespace
This commit is contained in:
parent
64499676be
commit
54ede40938
60 changed files with 79 additions and 133 deletions
|
@ -9,6 +9,7 @@
|
|||
location /plex {
|
||||
return 301 $scheme://$host/plex/;
|
||||
}
|
||||
|
||||
location ^~ /plex/ {
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
|
@ -43,6 +44,7 @@ location ^~ /plex/ {
|
|||
proxy_set_header X-Plex-Device-Vendor $http_x_plex_device_vendor;
|
||||
proxy_set_header X-Plex-Model $http_x_plex_model;
|
||||
}
|
||||
|
||||
if ($http_referer ~* /plex) {
|
||||
rewrite ^/web/(.*) /plex/web/$1? redirect;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue