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
This commit is contained in:
Mark De Deuge 2021-08-10 10:27:40 +10:00 committed by GitHub
parent 6620d34f25
commit fc06bc7574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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