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;