Updated nginx.conf. Finally got it working with WebSockets.