nginx 配置

http json的对象中:

upstream backend {
server 127.0.0.1:5000;
server 127.0.0.1:6000;
}

server {
listen 8080;
server_name localhost;

location / {
index index.html index.htm;
proxy_pass http://backend;
}

}

nginx -s reload 

.net core 启动端口:

dotnet AspNetCoreUrl.dll --urls "http://localhost:7001;https://localhost:7011"
 
posted @ 2023-09-22 22:42  MaxBruce  阅读(13)  评论(0)    收藏  举报