It’s best practice for ASP.NET Core applications to have a “real” webserver in front of them. We’ll configure NGINX for the job using Ansible. We don’t hate all best practices. ASP.NET Core applications have a built-in webserver called Kestrel. This internal webserver is not intended to serve requests directly. It must be placed behind a production quality webserver such as NGINX, IIS, etc. We chose NGINX because we have experience with it and it runs on Linux. Ansible does all the needed configuration and keeps our servers consistent and predictable.
Configure NGINX with Ansible
Everything we need can be accomplished from a single playbook. This playbook installs NGINX, configures it, copies SSL keys and enables the ASP.NET Core site:
Request Metrics is drop-in application monitoring where it matters most:
the end user experience. From API Observability to User Sessions,
developers can see the problems that matter to users, fix them faster,
and continuously improve their applications. Request Metrics provides
software observability in minutes instead of months for companies worldwide like
eBay, Virgin Mobile, and Aljazeera.