From 71efd71cad9a69bc13f8ca4715bdbbdfbc1acf83 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Thu, 27 Feb 2020 22:43:48 +0100 Subject: [PATCH] from man --- includes/organizr-conf/custom/organizr.conf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/includes/organizr-conf/custom/organizr.conf b/includes/organizr-conf/custom/organizr.conf index c97065a5..c4a7649e 100644 --- a/includes/organizr-conf/custom/organizr.conf +++ b/includes/organizr-conf/custom/organizr.conf @@ -115,16 +115,23 @@ if ($http_referer ~* /plex/) { rewrite ^/web/(.*) /plex/web/$1? redirect; } -location /tautulli { +location /tautulli/ { auth_request /auth-4; add_header X-Frame-Options "SAMEORIGIN"; proxy_pass http://192.168.31.26:8181/; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; 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-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 { auth_request /auth-4;