5

The Actual Chat fix

nginx this

server { listen 80; server_name 192.168.1.235;

location /socket.io/ { proxysetheader Host $httphost; proxysetheader X-NginX-Proxy true; proxypass http://127.0.0.1:8000/socket.io/; proxy_redirect off;

  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
}

location / {
    include proxy_params;
    proxy_pass http://192.168.1.235:8000;
}

}

plus the ssl stuff

gunicorn this

gunicorn --worker-class eventlet -w 1 --bind 0.0.0.0 wsgi:app

The Actual Chat fix nginx this server { listen 80; server_name 192.168.1.235; location /socket.io/ { proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:8000/socket.io/; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location / { include proxy_params; proxy_pass http://192.168.1.235:8000; } } plus the ssl stuff gunicorn this gunicorn --worker-class eventlet -w 1 --bind 0.0.0.0 wsgi:app

1 comments