Thing’s you’ll need: PuTTY 🧱, Mouse 🐁 (okay this is linux so you wont really need a mouse) and linux is free so you wont need cache 💰

Table of content:
1. Install .net core 3.1
2. Install Nginx
3. Build and copy your application
4. Configure your Nginx server block
5. Create your Asp.Net service
6. Secure your hosted application with SSL

Install .net core 3.1

I built an application with .net core 3.1

To install that run the following:

sudo apt-get update 
sudo apt-get install apt-transport-https sudo apt-get update
sudo apt-get install dotnet-sdk-3.1

find other sdk versions here

Install Nginx

Run the following…

With great jubilee we can now create ASP.NET Core web application with an Angular template. However much to my dismay I found that the little Enable Docker Support checkbox is grayed out…

ASP.NET Core 3.0 provides native support that allows you to authorize endpoints using JSON web Tokens (JWT) i.e. without any dependency on third party packages.

After creating a new ASP.NET Core 3.0 Web API project add the following .NET core dependency:

dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer --version 3.0.0


.NET Core middleware that enables an application to receive an OpenID Connect bearer token. — Microsoft

I would suggest adding some new config to your appsettings.json file

"Jwt": {
"Key": "12b6fb24-adb8-4ce5-aa49-79b265ebf256"

You may need additional config such as Issuer and Audience addresses if you wish to validate those.

Now to

Harry Hathorn

I’m a software developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store