mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-08 17:42:32 +02:00
Cleanup redundant headers from proxy.conf
Also general cleanup of whitespace
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user