.NET Exercise

Dependencies

Clone React Build Artifacts:

Clone the following repository to the home directory:

git clone https://github.com/LaunchCodeTechnicalTraining/dotnet-techjobs-mvc-artifacts

How do you deploy the dotnet-techjobs-mvc project using Caddy?

Click Here for Answer

Ensure the caddy service is running:

systemctl status caddy

check caddy.service status check caddy.service status

Start the caddy service if it is inactive:

sudo systemctl start caddy

Start the .NET application:

dotnet run

Create a Caddyfile

  • You can create the Caddyfile anywhere you would like. For this exercise it was created inside of the home directory.

Add the following code to the Caddyfile

## Default localhost port
https://localhost {
        reverse_proxy http://localhost:5000
}

Reload the Caddy Service:

caddy reload

Reload Caddy Service Reload Caddy Service

Open Localhost in the browser:

Open http://localhost in browser Open http://localhost in browser