How I split Plug.SSL to control SSL redirection
This post was originally published on the BetterDoc Dev-Blog.
Recently I set out to configure a service at work to run behind a reverse proxy with TLS termination.
With Phoenix being the great framework it is, I assumed this would be a breeze. But it turned out that reality had different plans for me.
In this post I’ll tell you a story on all the different bits of documentation I rummaged through, the things I learned from reading the source code of Plug.SSL
, the solution I arrived at, and the proposal I submitted to plug
.