Connecting to my render.com app subdomain works fine:
https://hogaria.onrender.com
But when I connect to my own domain, I see that the websocket connection is failing.
https://hogaria.app/
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