Adding the following into the .htaccess file at the root of your webspace, will redirect to the https version.
Application setup Add the latest NuGet package Microsoft.Extensions.Hosting.WindowsServices. In program.cs we need to call the UseWindowsServices() method on webBuilder. Because a windows service always returns C:\Windows\system32 as it’s base path,…
Since Let’s Encrypt is free, and we love their certificates, why not use them for the admin panel as well?This is oddly enough not built-in considering that it supports AutoSSL…
I do a lot of services in .Net core and .Net 5 that is meant to run on Linux servers, and sometimes I need to include shell script (.sh files)…
In this tutorial we will install Configserver Security & Firewall (CSF) and Login Failure Deamon (LFD) on our CentOS machine. What is CSF and LFD? A Stateful Packet Inspection (SPI)…
Sometimes we just need to run kestrel without the need for a green browser padlock and therefor not needing to have a “real” certificate. but still want secure HTTPS communications…
DotNet Core and Standard are cross platform and sometimes we need to know what OS we are running on. To check what operating system the application is currently running on,…
When upgrading a ASPNET DotNet Core 2.2 to 3.1, you might get this error when compiling: The hint is in there: Doing upgrading we no longer need to depend on…
Sponsored postThank you developer for a key I have had the privilege to try out NDepend and see what it can do now for a couple of weeks while working…
Here is a quick cheat sheet of how to manually start backup from the command line. All Accounts Single account