Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add SSL to Heroku app and godaddy - Rails

I'm trying to setup SSL certs with heroku and godaddy. I've successfully created a cert with LetsEncrypt, and have received this message

Your certificate has been added successfully.  Update your application's DNS settings as follows
Domain                   Record Type  DNS Target
───────────────────────  ───────────  ─────────────────────────────────────
secure.lockdownjobs.com  CNAME        secure.lockdownjobs.com.herokudns.com
www.lockdownjobs.com     CNAME        www.lockdownjobs.com.herokudns.com

The part I'm struggling with is DNS Target how in godaddy do I point the domain at the DNS target?

like image 585
Bitwise Avatar asked Apr 08 '17 22:04

Bitwise


People also ask

How do I connect my Heroku app to my GoDaddy domain?

Navigate to the project folder from the terminal then type "heroku domains:add www.yourdomain.com". The domain name is the one purchased from GoDaddy. Next, log into your GoDaddy account and find the domains area in the upper left navigation tab. The domains tab will allow you to choose a domain then launch.

Does Heroku work with GoDaddy?

Does Heroku work with GoDaddy? Yes, Heroku can work with Godaddy by setting up a Custom Domain and configuring a DNS target to make your app accessible on this platform.


1 Answers

Just add the CNAME in Godaddy. Go to your domain, click on DNS File settings and add a new CNAME:

CNAME
www
Target
secure.lockdownjobs.com.herokudns.com

I recommend you read about how to add SSL certificate to Heroku: https://devcenter.heroku.com/articles/ssl-endpoint#setting-up-ssl-on-heroku

And also the much easier way of doing it (Let Heroku do it): https://devcenter.heroku.com/articles/automated-certificate-management

like image 119
Alexander Luna Avatar answered Sep 23 '22 23:09

Alexander Luna