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"