Unit Testing DateTime.Now
Here is a handy class that will help with unit testing any references to DateTime.Now. public static class SystemTime{ public static Func<DateTime> Now = () => DateTime.Now(); public static Func<DateTime>…
Here is a handy class that will help with unit testing any references to DateTime.Now. public static class SystemTime{ public static Func<DateTime> Now = () => DateTime.Now(); public static Func<DateTime>…
Add a new .net core project to your existing solution. Add a NuGet package reference to Yarp.ReverseProxy. <ItemGroup> <PackageReference Include="Yarp.ReverseProxy" /> </ItemGroup> Configure the startup middleware by adding the following…
Open Chrome Launch: chrome://net-internals/#hsts Query for HSTS policies by entering the domain into the Query HSTS field. To delete any HSTS policies enter the domain into the Delete field.
Configure Nginx Reverse Proxy To configure Nginx to act as a reverse proxy you will need to edit the default site config. sudo nano /etc/nginx/sites-available/default This is a boilerplate config…
Moving content from Windows to Linux/Nginx is simple and quick with the use of SFTP. I used WinSCP to connect to Ubuntu and transfer files to be hosted by Nginx.…
Update & Install Nginx Package sudo apt update sudo apt install nginx Press Y and Enter or just Enter to continue when prompted. The nginx packages will then be downloaded…