In short, you don't need an SSL certicate on Heroku at all, but
Cloudflare settings need to be
- SSL/TLS encryption mode is Flexible.
- Page Rules. You can only set 3 for free for a given domain name.
-
*.your.tld/*
- Always Use HTTPS
-
It is related to this post, where he uses WordPress (and the correlated MySQL / AWS S3.)
![aryaziai image](https://res.cloudinary.com/practicaldev/image/fetch/s--c8jW6cje--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--1n3LUYRA--/c_fill%2Cf_auto%2Cfl_progressive%2Ch_150%2Cq_auto%2Cw_150/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/265784/10a5c44d-4ee0-4d3a-af23-57836d620961.jpeg)
Complete Guide To Hosting Wordpress On Heroku With SSL Certification
aryaziai ・ May 26 ・ 7 min read
I am going to ditch Google Cloud Run for Heroku for now. I still get full power of Docker, with no problem of custom domain mapping (and avoid some meager payment, not free).
This website, with CORS-enabled public OpenAPI, actually. (Some other securities I put in are Helmet and Rate-Limiting, as well as database user being read-only.)
Top comments (1)
Thanks dude, you really saved my day! After hours of setting up custom domain and SSL, I was almost frustrated to find this message from my last hope.