fix(infra): engine-portable portal nginx resolver (closes #96) #97
Reference in New Issue
Block a user
Delete Branch "fix/portal-nginx-resolver"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
Closes #96. The portal nginx configs hardcode
resolver 127.0.0.11(Docker's embedded DNS) for their variableproxy_passto the BFF, so on rootless podman (network-specific aardvark DNS) every proxied call 502'd — the portals loaded and login worked, but no in-app data flowed.Add a shared
/docker-entrypoint.dhook (apps/portal-nginx-resolver.sh, wired into all three portal Dockerfiles) that rewrites the resolver from the container's own/etc/resolv.confat startup: a no-op on Docker (nameserver is 127.0.0.11) and correct on podman (rewrites to e.g. 10.89.0.1). nginx.conf is unchanged (the hardcoded value is the substitution anchor).How verified
Built the behandel image and ran it on the compose network under podman: the hook rewrote the config to
resolver 10.89.0.1, andGET /behandel/werkbakproxied to the BFF returning 401 (auth), not 502. On Docker the nameserver is 127.0.0.11 so the substitution is a no-op and CI/e2e behaviour is unchanged.