Today
Nginx terminates TLS and forwards requests to the app on 127.0.0.1:5001. The app recognizes the forwarded scheme only when that request originates from loopback.
About this example
This is an intentionally focused Razor Pages application. It has no database dependency, so it can be copied to a server and published with the standard .NET SDK.
Nginx terminates TLS and forwards requests to the app on 127.0.0.1:5001. The app recognizes the forwarded scheme only when that request originates from loopback.
Add domain services, authentication, or SQL Server through configuration and dependency injection. Keep connection strings and other secrets out of source control.
The /health endpoint returns a compact JSON payload suitable for a load balancer, uptime check, or deployment smoke test.