From fc06bc75749b0b151d23fcc58ece99580c42af17 Mon Sep 17 00:00:00 2001 From: Mark De Deuge Date: Tue, 10 Aug 2021 10:27:40 +1000 Subject: [PATCH] Update nginx.conf to use http_host rather than host fixes #1930 Using proxy_set_header Host $host; does not pass through the port. This causes the /api-doc/ route to miss the port when attempting to render routes. This fixes: #1930 --- docker/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 270378735e..271f65a89d 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -10,7 +10,7 @@ server { proxy_pass http://inventree-server:8000; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_redirect off; @@ -54,4 +54,4 @@ server { proxy_set_header X-Original-URI $request_uri; } -} \ No newline at end of file +}