我需要tornado-sockJS Nginx配置我无法在网上找到任何可以帮助我的文档?
没有使用sockJS工作龙卷风 - nginx配置..
答案 0 :(得分:2)
我在我的博客应用程序中使用SockJS-Tornado。我创建了一个SockJSRouter in my code here。我的SockJSConnection子类is defined in my code here和here is my nginx.conf。我的nginx.conf的相关行是:
location /blog/sock_js {
proxy_pass http://motor_blog;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}