问答详情
源自:6-3 compose实战

Docker + Nginx + socket.io 提示跨域

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";
}
}
}

提问者:mono天王 2017-10-19 10:21

个回答