fix: correct proxy for host

This commit is contained in:
Trenten Vollmer 2024-11-12 15:19:23 -05:00
parent 42dd32eed4
commit 577df13f16

View file

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