fix: correct proxy for host
This commit is contained in:
parent
42dd32eed4
commit
577df13f16
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,8 @@ http {
|
||||||
resolver 127.0.0.11 valid=30s; # Docker DNS
|
resolver 127.0.0.11 valid=30s; # Docker DNS
|
||||||
proxy_pass http://host.docker.internal:3001/api/; # Local back end
|
proxy_pass http://host.docker.internal:3001/api/; # Local back end
|
||||||
proxy_redirect default;
|
proxy_redirect default;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
#OIDC Provider
|
#OIDC Provider
|
||||||
|
@ -34,6 +36,9 @@ http {
|
||||||
resolver 127.0.0.11 valid=30s; # Docker DNS
|
resolver 127.0.0.11 valid=30s; # Docker DNS
|
||||||
proxy_pass http://host.docker.internal:3001/oidc/; # Local back end
|
proxy_pass http://host.docker.internal:3001/oidc/; # Local back end
|
||||||
proxy_redirect default;
|
proxy_redirect default;
|
||||||
|
|
||||||
|
#Needed for Host File
|
||||||
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
#Frontend Next.js App
|
#Frontend Next.js App
|
||||||
|
@ -41,6 +46,9 @@ http {
|
||||||
resolver 127.0.0.11 valid=30s; # Docker DNS
|
resolver 127.0.0.11 valid=30s; # Docker DNS
|
||||||
proxy_pass http://host.docker.internal:3000/; # Local back end
|
proxy_pass http://host.docker.internal:3000/; # Local back end
|
||||||
proxy_redirect default;
|
proxy_redirect default;
|
||||||
|
# Change the host header to the original host
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
Loading…
Reference in a new issue