Docker + Nginx + socket.io 提示跨域

来源:6-3 compose实战

mono天王

2017-10-19 10:21

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

写回答 关注

1回答

Docker入门

再不学点Docker你就out啦!

97053 学习 · 242 问题

查看课程

相似问题