Closed iampeterbanjo closed 5 years ago
did you manage to fix this?
No I haven't. I had to use a reverse proxy and pass through the "Upgrade" header.
Sent from my Motorola Moto G (5) Plus using FastHub
Would be cool to see a fix!
Hi,
This thread on elixir forum seems to resolve the issue: https://elixirforum.com/t/phoenix-1-3-umbrella-architecture/4100/11
I didn't had the time to check it.
thanks @obsidienne - I've added a comment to that thread but I don't think it answers the question. The thread seems to be unresolved. Please let me know if I have missed something.
I struggled with master_proxy but finally made it work on my Phoenix 1.4 / cowboy 2.5 app.
It supports HTTPS and websockets properly, here is a gist: https://gist.github.com/cblavier/0c2cf3f101d82c32503774f179a66a3f
@cblavier thanks for sharing - that looks promising. does it work for the static assets? e.g. do the favicons, images etc in the apps appear correctly without showing errors in the browser console?
Yes, it's working for my js / css bundles, and my favicon / robot.txt as well
@cblavier brilliant! i'll try it out. I'll close this issue then. Thanks a bunch.
Using the boilerplate "hello" app an the Phoenix guides site and the master proxy in this application I am seeing the following errors on my websocket connections:
The endpoint for the hello app are boilerplate:
Since there is only one app at the moment, my proxy plug.ex is:
This happens when I start the phoenix web server for the umbrella app and not the sub-app. A repo of my code is at https://github.com/iampeterbanjo/hello-proxy
Is there a way to proxy the websockets as well in the master proxy?