.Net5 SignalR在Nginx上的配置

        location / {
            proxy_pass http://localhost:5000;
            #以下为WebSocket需要配置
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }

 

posted @ 2021-06-03 14:51  chenjingchun  阅读(212)  评论(0)    收藏  举报