This commit is contained in:
kjeld Schouten-Lebbing 2020-02-27 22:43:48 +01:00
parent 7d83cce04e
commit 71efd71cad

View File

@ -115,16 +115,23 @@ if ($http_referer ~* /plex/) {
rewrite ^/web/(.*) /plex/web/$1? redirect; rewrite ^/web/(.*) /plex/web/$1? redirect;
} }
location /tautulli { location /tautulli/ {
auth_request /auth-4; auth_request /auth-4;
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
proxy_pass http://192.168.31.26:8181/; proxy_pass http://192.168.31.26:8181/;
proxy_set_header Host $http_host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 90;
proxy_set_header X-Forwarded-Proto $scheme;
set $xforwardedssl "off";
if ($scheme = https) {
set $xforwardedssl "on";
}
proxy_set_header X-Forwarded-Ssl $xforwardedssl;
proxy_redirect ~^(http(?:s)?://)([^:/]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
}
location /ombi { location /ombi {
auth_request /auth-4; auth_request /auth-4;