Lab to setup ASP.NET Core

ASP.NET Core on Linux is something of a hot mess.

Nevermind the fact that the REPL was removed (thus making it useless for training and demos). Nevermind the excessing uppercase letters (e.g. Debug) causing you to hit the shift key every 2 seconds (seriously, there's a reason most things in Linux, including Python, are lowercase!) Whoever designed the Linux support was not a Linux expert at all. So many things are infuriating-- particularly things involving over coupling. The fact that they think developers should choose the URLs and UNIX sockets (e.g. in Program.cs) is by itself enough to make any SysAdmin laugh (and never use it). I know I'll end up writing an abstraction layer for this.... but I digress.

The good news is that there's an official post on setting it up for Linux on production. Now that dude knows his stuff. One caveat: Ubuntu in production? Dude... no. Keep that NIHS nonsense in the training lab. In the real world we use firewalld and SELinux, not Ubuntu's private party of ufw and AppArmor. Also, his technique for adding SSL is obsolete. SSL is built in. Heck, HTTP2 is even built in. See my elasticsearch-secure lab for a full production-ready HTTPS/HTTP 2 lab.

Deploy to Azure