Describe the bug
StatusPageApiInternalUrl in Common/Server/EnvironmentConfig.ts is built from AppApiClientUrl, which uses the public HOST and HTTP_PROTOCOL env vars. In Kubernetes (and any multi-host deployment) this causes the app container to call its own public ingress for the SEO lookup:
APIException: Request failed to https://my_domain/api/status-page/seo/...
connect ETIMEDOUT 10.10.10.10:443
The request originates from inside the pod and tries to reach the external URL, which may be unreachable or cause an ETIMEDOUT.
Root cause
EnvironmentConfig.ts already has AppApiHostname (built from SERVER_APP_HOSTNAME:APP_PORT env vars) for exactly this purpose, but StatusPageApiInternalUrl was never updated to use it.
Expected behavior
Internal server-to-server calls should use the internal service hostname so they stay within the cluster.
Proposed fix
Change StatusPageApiInternalUrl to:
export const StatusPageApiInternalUrl: URL = new URL(
Protocol.HTTP,
AppApiHostname,
new Route(`${AppApiRoute.toString()}/status-page`),
);
Deployment Type
Kubernetes (Helm chart)
Describe the bug
StatusPageApiInternalUrlinCommon/Server/EnvironmentConfig.tsis built fromAppApiClientUrl, which uses the publicHOSTandHTTP_PROTOCOLenv vars. In Kubernetes (and any multi-host deployment) this causes the app container to call its own public ingress for the SEO lookup:The request originates from inside the pod and tries to reach the external URL, which may be unreachable or cause an ETIMEDOUT.
Root cause
EnvironmentConfig.tsalready hasAppApiHostname(built fromSERVER_APP_HOSTNAME:APP_PORTenv vars) for exactly this purpose, butStatusPageApiInternalUrlwas never updated to use it.Expected behavior
Internal server-to-server calls should use the internal service hostname so they stay within the cluster.
Proposed fix
Change
StatusPageApiInternalUrlto:Deployment Type
Kubernetes (Helm chart)