From b1ec560038da8116329960c5d1aaaf4103a077dc Mon Sep 17 00:00:00 2001 From: AngeD Date: Sat, 14 Oct 2023 17:46:24 +0200 Subject: [PATCH] fix: *arr nginx config --- lidarr/nginx.conf | 10 ++++++++-- sonarr/nginx.conf | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lidarr/nginx.conf b/lidarr/nginx.conf index ada07a2..1f749cb 100644 --- a/lidarr/nginx.conf +++ b/lidarr/nginx.conf @@ -17,7 +17,13 @@ server { location / { proxy_pass http://lidarr:8686; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + proxy_redirect off; + proxy_http_version 1.1; } } diff --git a/sonarr/nginx.conf b/sonarr/nginx.conf index b2a5ed4..661c288 100644 --- a/sonarr/nginx.conf +++ b/sonarr/nginx.conf @@ -17,7 +17,7 @@ server { location / { proxy_pass http://sonarr:8989; - proxy_set_header Host $host; + proxy_set_header Host $proxy_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme;