I’m using Nginx to terminate ssl and reverse proxy to my phoenix application, which I’m deploying via docker. The web traffic works fine, but websockets are giving me the business.
I get a 403 forbidden when the socket tries to connect. I’m suspecting it’s something to do with my config, which is
config :exertion, Exertion.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "exertion.io", port: {:system, "PORT"}],
cache_static_manifest: "priv/static/manifest.json"
I’ve configured nginx as recommended to proxy websocket connections.