From 577df13f169eb2c524e48a77d155904cea3f7650 Mon Sep 17 00:00:00 2001 From: Trenten Vollmer Date: Tue, 12 Nov 2024 15:19:23 -0500 Subject: [PATCH] fix: correct proxy for host --- configs/nginx-dev.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/nginx-dev.conf b/configs/nginx-dev.conf index 22810f4..e5bfd2d 100644 --- a/configs/nginx-dev.conf +++ b/configs/nginx-dev.conf @@ -27,6 +27,8 @@ http { resolver 127.0.0.11 valid=30s; # Docker DNS proxy_pass http://host.docker.internal:3001/api/; # Local back end proxy_redirect default; + + proxy_set_header Host $host; } #OIDC Provider @@ -34,6 +36,9 @@ http { resolver 127.0.0.11 valid=30s; # Docker DNS proxy_pass http://host.docker.internal:3001/oidc/; # Local back end proxy_redirect default; + + #Needed for Host File + proxy_set_header Host $host; } #Frontend Next.js App @@ -41,6 +46,9 @@ http { resolver 127.0.0.11 valid=30s; # Docker DNS proxy_pass http://host.docker.internal:3000/; # Local back end proxy_redirect default; + # Change the host header to the original host + + proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;