Websockets nginx reverse proxy + Cloudflare
<p>I'm using <code>NGINX</code> to <strong>proxy</strong> a <code>node.js websockets server</code> with my subdomain wich is using <code>CloudFlare</code> service. 
<br>
But when I'm connecting to the websocket server, I have this error <code>WebSocket connection to 'ws://xxxx.xxxx.tld/' failed: Error during WebSocket handshake: Unexpected response code: 200</code><br>
<em>PS: I don't have this error when I'm accessing directly by IP adress:port whitout NGINX reverse proxy.</em>
<br><br>
Here's my <code>NGINX</code> <strong>config file</strong>:</p>

<pre><code>server {
    listen 80;
    server_name xxxx.xxxx.tld;

    location / {
        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:89;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}
</code></pre>

<p>For information, I'm using the latest version of <code>NGINX</code>.<br>
<strong>What's wrong?</strong> Thanks</p>