Backend & APIs
Configure Kestrel safely behind a reverse proxy
Kestrel is the default web server for ASP.NET Core apps. When an edge proxy terminates TLS and forwards HTTP to Kestrel, the app sees the proxy's address and may not know the original request used HTTPS or came from which client. Bind Kestrel to an internal address and trust forwarded headers only from the actual proxy so redirects, authentication, and logs use the right request context. This guide follows .NET 10 docs for one proxy and an HTTP backend; direct-edge Kestrel TLS is out of scope.