Behind a load balancerbeginner
Behind a load balancer your app talks to the balancer, not the browser, so the real client address and scheme arrive in forwarded headers — which you must apply, and trust only from the balancer.
The API now sits behind a load balancer that ends HTTPS and adds a path prefix. Requests redirect to HTTPS forever, every customer shares one rate-limit bucket, and generated links lose /wallet.
Forwarded headers applied first and trusted only from the balancer, path base from configuration, routing after it.
Published in full, before you start — every point is one of these and there is nothing else.
Behind a load balancer your app talks to the balancer, not the browser, so the real client address and scheme arrive in forwarded headers — which you must apply, and trust only from the balancer.