How to add Sign in with Google, GitHub, Slack and more with ASP.NET Core

I’m sure you have come across web and mobile applications where they offer social logins such as Google, Facebook, Twitter and many more. This is great, as its one less sign up and login you have to remember. It also reduces the friction of signing up. It’s especially great if you can incorporate them into your own applications. The main benefit of this is that it lowers the barrier of entry for people registering to use your product or service....

March 15, 2019

Getting started with Traefik as an alternative and easy to use reverse proxy

After having discovered Traefik accidentally via a simple HN comment from the community, I find it fantastic. It’s a great alternative and relatively simple to use reverse proxy and load balancer. Especially for dockerized web applications. In my previous post I wrote about setting up Nginx as a reverse proxy as well adding SSL with Let’s Encrypt. Whilst that works, and Nginx is a great reverse proxy and it also provides load balancing as well as many other things, I personally found it tricky to configure in Docker....

February 18, 2019

How to add SSL for free to an ASP.NET Core app using Let's Encrypt and Nginx

In this post, I will talk through how to install Nginx as a reverse proxy and configure SSL for free with the help of Let’s Encrypt and Docker. I will be using DigitalOcean, but any Linux machine with Docker installed will also work. So, What is Nginx reverse proxy? If you have not come across Nginx, it is a web server similar to many other common web servers such as IIS and Apache HTTP server....

February 5, 2019

How to deploy and host an ASP.NET Core app on Linux for $5 a month on DigitalOcean

I originally wrote this as a single post to document how I deployed an ASP.NET Core application on DigitalOcean. I also setup a web server using Nginx and setup SSL for free using Lets Encrypt and finally added some basic security with Fail2ban. I soon realised, it became rather large, so I have broken it down into individual sections: How to setup a Linux machine with Docker on DigitalOcean How to deploy and host an ASP....

February 5, 2019

How to secure and protect Nginx on Linux with Fail2ban

When I managed to deploy an ASP.NET core app on Linux with Nginx, I noticed a lot of rogue and spam internet traffic in the Nginx logs. Mostly mild hacking attempts and rather a lot of php requests. Its mostly noise, but I wanted a way of banning these ip addresses as they are no good and this is how I came across using Fail2ban. What is Fail2ban? In short, its a tool that scans log files based on a defined regular expression....

February 5, 2019

How to setup a Linux machine with Docker on DigitalOcean for $5

Learn how to setup a Linux machine with Docker using DigitalOcean with just a few clicks.

December 28, 2018

Docker for beginners - docker file, docker build, docker run, docker compose, what does it all mean?

An intro into docker files, docker build, docker run whats the difference and how they all come together with docker compose

October 22, 2018

Getting started with Docker for C# developers

Docker has come a long way since I first came across it in 2015, and now that Microsoft have lot’s of support and with the addition of in-built docker tools in Visual Studio, I thought it was time for me to pick up it up. What is Docker in simple terms? My interpretation of Docker in a nutshell is: Docker is a tool that allows you to build, package and deploy your applications....

September 23, 2018