Nginx 配置如下
worker_processes 4;
events {
worker_connections 1024;
}
http {
upstream sockets{
server http://casino-app:7000/;
}
server {
listen 80;
location / {
proxy_pass http://sockets;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}