filmov
tv
How to deploy .net core website in linux | Hosting .net core website in ubuntu using nginx server
![preview_player](https://i.ytimg.com/vi/mtXE1LMQZEY/maxresdefault.jpg)
Показать описание
Hi there, in this video I have described how to install nginx server and how to deploy asp .net core web app in linux machine. For this i have used nginx server as a reverse proxy server and asp .net mvc core for creating a web app.
Topics covered in this video:
How to deploy .net core app in linux.
How to install nginx server in linux machine.
===========================================================
server {
listen 80;
location / {
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;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
--------------
[Unit]
Description= mvcnew webapp
[Service]
WorkingDirectory=/var/www/app1
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
SyslogIdentifier=mvcnew
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
....................................................................
Previous videos:
1. Asp.Net Core MVC Web App CRUD with EF Core
2. How to use SQL-Server with VS Code in Ubuntu.
Other links:
.......................................................
connect with me
..........................................
Become a supporter:
.......................................................
connect with me
..........................................
Become a supporter:
Topics covered in this video:
How to deploy .net core app in linux.
How to install nginx server in linux machine.
===========================================================
server {
listen 80;
location / {
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;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
--------------
[Unit]
Description= mvcnew webapp
[Service]
WorkingDirectory=/var/www/app1
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
SyslogIdentifier=mvcnew
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
....................................................................
Previous videos:
1. Asp.Net Core MVC Web App CRUD with EF Core
2. How to use SQL-Server with VS Code in Ubuntu.
Other links:
.......................................................
connect with me
..........................................
Become a supporter:
.......................................................
connect with me
..........................................
Become a supporter:
Комментарии