Connection lost using Nginx reverse Proxy

Hey,

So after doing some looking into it, it seems it might be because ure not handle websockets in ure nginx, I would look into these, which may help.

# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

# Forward original client info
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

# Disable caching and buffering
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;

# Prevent timeouts
proxy_read_timeout 3600;
proxy_send_timeout 3600;

Hope this helps.
Samuel