wallyfoo
Can't Figure Out How to Make Transactional URLs from phx_gen_html come up as https://
Dokku running a Phoenix app on :80 with a nginx proxy to handle SSL. https://reapervirtual.com
When the phx_gen_auth routes generate a transactional email, the transport prefix seems to be http://
“Makes sense,” I think. After all, the prod.exs endpoint is
config :rconlive, RconliveWeb.Endpoint,
url: [host: "reapervirtual.com", port: 80]
80 == http://. Fine. So, how do I get the generated URL to come from https://?
Fiddle with the port? Perhaps it’s using the endpoint config. Nope. Setting the port to 443 tacked a port to the end of the url: http://reapervirtual.com:443/
In desperation, I set the :static_url of the endpoint. Maybe if I explicitly state https://reapervirtual.com in the :static_url of the endpoint? No. This breaks the website.
It’s not a huge deal. I automatically redirect to https, but it would look more professional, IMO, if the transport of the link matched the website.
It’s starting to get under my skin. For the life of me, I can’t see where to make this happen.
Any pointers? Am I missing something really obvious? I can’t find any relevant information in the docs.
(Apologies in advance if this has been answered elsewhere. I couldn’t find it searching the forum.)







