Cleanup redundant headers from proxy.conf

Also general cleanup of whitespace
This commit is contained in:
Eric Nemchik 2020-09-01 11:56:42 -05:00
commit 54ede40938
60 changed files with 79 additions and 133 deletions

View file

@ -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;
}