Multiple domains on a single Phoenix app

For :force_ssl it’s documented. For :url it should work automatically for any domain if you use a conn as the first param for the url generating helpers. What you set as setting on the endpoint is just the default to fall back for other inputs to those helpers, which don’t have access to a current request.

1 Like