Having problems connecting to my wss in Phoenix hosting on render.com

Connecting to my render.com app subdomain works fine:


But when I connect to my own domain, I see that the websocket connection is failing.


Here’s what my prod.exs configuration file looks like - I’m on Phoenix 1.6.0, master branch:

config :hogaria, HogariaWeb.Endpoint,
  server: true,
  url: [host: System.get_env("RENDER_EXTERNAL_HOSTNAME") || "localhost", port: 80],
  cache_static_manifest: "priv/static/cache_manifest.json"

I found some people having issues with Rails and ActionCable, similar situation. Rails, ActionCable and WebSockets - #11 by andypeters - Render

Hi Sergio,

Reposting from our own community forum: