.NET Exercise

Dependencies

Install .NET SDK 6.0 and the dotnet CLI

Add Package Repository

wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb 

sudo dpkg -i packages-microsoft-prod.deb

Update Package Repository List

sudo apt update

Install .NET SDK 6.0 and dotnet CLI

sudo apt install dotnet-sdk-6.0

Deploy Artifacts (GitHub)

You can find the artifacts for this project at the .NET Techjobs MVC artifacts GitHub repo .

Instructions

Using the project dependencies and the deploy artifacts:

  1. start the application server
  2. configure NGINX to serve as a reverse proxy to the running application server

Hints

Starting the Application Server

  1. Figure out how to start a .NET application with the dotnet CLI.
  2. Figure out how to start a .NET application with the executable script in the Project artifact directory.

NGINX Troubleshooting

  1. NGINX and Caddy can’t both be running as they conflict over the ports 80 and 443.
  2. Use the systemctl stop and start commands to ensure only NGINX is active.

Questions & Answers

How can the application server be started with the dotnet CLI?

CLICK FOR ANSWER

What port was the application server running on?

CLICK FOR ANSWER

What did the NGINX configuration need to contain to serve as a reverse proxy?

CLICK FOR ANSWER

What command was used to reload NGINX after a change was made to the configuration file?

CLICK FOR ANSWER