I’m currently in the process of deploying ibgib, and I just finished configuring my DNS .
Now I’m trying to set up https redirection so that
(http://)www.ibgib.com will automatically redirect to
https://www.ibgib.com. What is the “proper” way to implement this?
I know of the
force_ssl option in the endpoint configuration, which I’ve tried turning on (with
hsts: true), however this does not seem to do the redirect. But this could be that I do not have my docker setup properly configured. Is setting this supposed to do the redirect? Or am I supposed to accomplish this another way, perhaps with nginx? And if nginx is the way to go, could I then completely remove the
http config setting from my endpoint config?
I’m currently using distillery to produce a release and then docker (engine, compose, machine) with a “simple” setup of my release container + a postgres container deployed to aws ec2. My full-ish (foolish? ) ongoing deployment notes can be found in my deploy issue for anyone else looking to go elixir + docker + aws.