heroku: set SSL certificates on Free Plan?

前端 未结 8 830
遇见更好的自我
遇见更好的自我 2020-12-24 13:20

I would like to set some SSL certificates for one app I have on heroku (a simple application based on nodeJS + Vue).

I know if I upgrade to the Hobby Plan (7$ for mo

8条回答
  •  臣服心动
    2020-12-24 13:54

    Here's how you get FULL SSL using Cloudflare for FREE.

    Step 1: Point Your domain to CloudFlare. You basically open an account an enter your domain when prompted. You may be given instructions to change your domain name servers.

    Step 2: Add Cname Record of Heroku Server in DNS of Cloudflare. Instructions are here. Here You will get Some SSL Security Issue.

    Step 3: Now Change Your SSL/TLS encryption mode to Full

    Step 4: In your DNS settings, you’ll want to create a CNAME: yourdomain.com -> yourapp.herokuapp.com.

    (I learned about the general approach here https://mikecoutermarsh.com/adding-ssl-to-heroku-with-cloudflare/ Although it's old, it still works.

提交回复
热议问题