Phoenix generate https urls

Documentation of Phoenix.Endpoint says

:url - configuration for generating URLs throughout the app. Accepts the :host, :scheme, :path and :port options.

So it should be enough to add scheme: "https" to your :url config