The other day I wrote a small application to collect images from events. As I work in my day job with C# and entity framework, I gave it a shot and used it for this tool.
The development was straight forward, as I knew it, the deployment was a little different.
I never deployed a dotnet application to a linux machine, but it realy just was the installation of the dotnet runtime, and nginx.
To let the dotnet application run in the background, you add a service in /etc/systemd/system/YOURSERVICE.service:
Here is what the nginx config looks like before certbot runs:
The config looks like this:
Certbot just needs the website name and goes to work.
It replaces the listing port and creates a redirect from http to https and links your certificates.
Restart nginx and the application should come to live.