I have a domain name with Hover. For example (“example.com”) and I configured it with my Heroku app. Heroku also generated the SSL certificate which is nice. So everything is working fine.
Question
Now that my domain name is pointing to my heroku app, should I be modifying my prod.ex to reflect my domain name as the host or leave it as the original “foo-yoyo-49678.herokuapp.com”?
Updated
OK, so I changed it. But I found that I’m NOT getting the SSL secure lock icon anymore. It’s now an Info icon or Not secure. Read here about Info icon
Would that have anything to do with recent change or is that something else?
If its only for the heroku domain, you need to get one for example.com on your own. Perhaps you can integrate letsencrypt into your application on heroku?
Heroku issues free SSL certificate when you are a paid customer. I followed the steps and I believe it’s setup correctly.
So if I run curl -kvI https://www.example.com
* HTTP 1.1 200 OK
* SSL certificate verify ok.
* Connected to www.example.com (52.54.789.232) port 443 (#0)
Now the problem.
If I run curl -kvI www.example.com without the https:/
* HTTP/1.1 301 Moved Permanently
* Connected to www.example.com (3.123.332.123) port 80 (#0)
* Location: https://example.herokuapp.com/
Ok. I need to retrace my steps with this whole SSL certificates and Heroku.
Thanks for the feedback on the original question.
I thought the whole url: [scheme: "https", host: "example.herokuapp.com", port: 443] maybe has something to do with it. But if it’s just tied to link generation then that’s the feedback.