X_TRUSTED_PROXY_HOPS_INVALID
Means
TRUSTED_PROXY_HOPS is not a whole number of proxies the boot accepts
Typical cause
TRUSTED_PROXY_HOPS must be a whole number from 1 to @ultimat3/http's MAX_PROXY_HOPS (64): the count of proxies that append to x-forwarded-for in front of this process. A malformed count is refused rather than defaulted, because reading the header at the wrong index trusts a value the client typed. It was reported as X_PORT_INVALID ('is not a TCP port number') until 24.0.0
Fix
TRUSTED_PROXY_HOPS=1 ROLE=web bun apps/web/server.ts