How do I proxy_pass all traffic including websocket traffic to a port?
<p>If traffic is websocket traffic I have to add</p>

<pre><code>    proxy_http_version 1.1;
    proxy_set_header Upgrade \$http_upgrade;
    proxy_set_header Connection "upgrade";
</code></pre>

<p>to my location block to get the websocket traffic to work. How do I make it so that all packets are forwarded to proxy_pass and websocket and regular traffic both work?</p>