3 ms·
this is let's say not great advice, and that is being friendly;-) url: [scheme: "https", host: "mysterious-meadow-6277.herokuapp.com", port: 443], force_ssl:
by outlog 9y ago
this is let's say not great advice, and that is being friendly;-)
url: [scheme: "https", host: "mysterious-meadow-6277.herokuapp.com", port: 443],
force_ssl: [rewrite_on: [:x_forwarded_proto]]
means that if you accessing the server over http it will redirect to the specified host and over https, so setting host: to you yourdomain.com would solve it.
If you have multiple domains you can remove the host: config or do a host: nil - then it will redirect to https for whateverdomain.com that is hitting the server.
all the best