Closed zuilintan closed 5 months ago
肯定是你配置的问题,这个docker容器是自带nginx的 你可以参考下配置
确实如此, 需要添加映射:
...
location /socket.io {
proxy_pass http://localhost:35000/socket.io;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
...
肯定是你配置的问题,这个docker容器是自带nginx的
你可以参考下配置