<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HaProxy and Websockets]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I'm trying to configure HaProxy to upgrade a connection for websockets.</p>
<p dir="auto">Before haproxy, I used nginx and had the following in my <code>nginx.conf</code> file</p>
<pre><code>      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      proxy_set_header Host $host;
</code></pre>
<p dir="auto">My web system uses Phoenix sockets, and the websockets are sent over the same port but with the path <code>/live</code>.</p>
<p dir="auto">My best guess at translating from other examples is:</p>
<p dir="auto"><img src="/assets/uploads/files/1638135438071-screen-shot-2021-11-28-at-3.35.13-pm-resized.png" alt="Screen Shot 2021-11-28 at 3.35.13 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This doesn't appear to upgrade the socket, and I don't have any real way of testing it other than watching for certain failures on mobile.</p>
<p dir="auto">Any help would be appreciated.</p>
]]></description><link>https://forum.netgate.com/topic/168179/haproxy-and-websockets</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 11:02:12 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/168179.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Nov 2021 21:38:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HaProxy and Websockets on Tue, 14 Dec 2021 22:19:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimfreeze">@<bdi>jimfreeze</bdi></a> Unfortunately, a bug in HAproxy 2.2 breaks websockets.</p>
<p dir="auto">Hopefully we can get 2.3 or future soon... or the patch integrated!<br />
(https://github.com/haproxy/haproxy/issues/737)</p>
]]></description><link>https://forum.netgate.com/post/1014620</link><guid isPermaLink="true">https://forum.netgate.com/post/1014620</guid><dc:creator><![CDATA[MrPete]]></dc:creator><pubDate>Tue, 14 Dec 2021 22:19:07 GMT</pubDate></item></channel></rss>