filmov
tv
How to deploy .Net core application into a Linux VM with Docker & Nginx

Показать описание
This is a step by step guide on how to deploy a .Net core application into a Linux VM using Docker and Nginx Web Server.
*********** Pre Requirements ***************
*********** Documentation ***************
*********** Scripts ************************
#Install Microsoft Dotnet SDK: 3.1
sudo apt-get update
sudo apt-get install nginx
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
#Compile & Publish the application on the local machine run:
..\AZCoreApp\HSCoreApp\bin\Debug\netcoreapp3.1\publish
\dotnet publish
On the Server after copying:
user/share/etc/nginx/sites-available/sudo chmod 677 default
*********** Default file config ***************
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
#After update file reload Ngnix
sudo nginx -s reload
***** Buy me a coffee *****
***** Affiliate Products *****
All products on this list I use and recommend since quality vs price are the best also I only recommend a product that I'm satisfied with it
Studio recording gear I use:
Desktop gear I use:
*********** Pre Requirements ***************
*********** Documentation ***************
*********** Scripts ************************
#Install Microsoft Dotnet SDK: 3.1
sudo apt-get update
sudo apt-get install nginx
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
#Compile & Publish the application on the local machine run:
..\AZCoreApp\HSCoreApp\bin\Debug\netcoreapp3.1\publish
\dotnet publish
On the Server after copying:
user/share/etc/nginx/sites-available/sudo chmod 677 default
*********** Default file config ***************
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
#After update file reload Ngnix
sudo nginx -s reload
***** Buy me a coffee *****
***** Affiliate Products *****
All products on this list I use and recommend since quality vs price are the best also I only recommend a product that I'm satisfied with it
Studio recording gear I use:
Desktop gear I use:
Комментарии