I deployed a phoenix project using distillery to my DigitalOcean droplet (Ubuntu 14.04, 4GB RAM, 2 CPUs), and normal http requests to the server work just fine (i.e. visit api.intervil.com).
However, when trying to connect to a channel I get this error in the chrome console phoenix.js:697 WebSocket connection to 'wss://api.intervil.com/socket/websocket?vsn=1.0.0' failed: WebSocket opening handshake was canceled.
The websockets work fine locally, but how can I get them working on my droplet?
Ah sorry, I made the assumption you were using Nginx. Your correct it should work without it though, although I have never done it this way. I just know that when I had that problem, that fixed it. Have you checked you prod.ex to make sure everything is correct there?