Question

I need tornado-sockJS Nginx configuration i cant find any documentation on the web who can help me?

not working tornado-nginx configurations with sockJS ..

Était-ce utile?

La solution

I use SockJS-Tornado in my blog application. I create a SockJSRouter in my code here. My SockJSConnection subclass is defined in my code here, and here is my nginx.conf. The relevant lines of my nginx.conf are like:

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";
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top