Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up SSL with CloudFlare


SSL (or HTTPS) is the technology that keeps all that data sent between our users and our web server safe from prying eyes. All Heroku apps already support SSL by piggybacking on Heroku's SSL certificate (https://your-app-name.herokuapp.com). However, unfortunately, this does not extend to any custom domains that we use for our application.

Heroku has a standard SSL add-on that we can use, but there is a simpler and more cost-effective solution—CloudFlare.

In this recipe, we'll learn how to protect our applications by enabling SSL in CloudFlare.

Getting ready

For this recipe, we'll need an existing Heroku application with a custom domain setup through CloudFlare. For step-by-step instructions on how to do this, refer to the previous recipe.

How to do it…

SSL is available on both CloudFlare's free and paid plans. If we use the free plan, we need to be aware that issuing our SSL certificate could take up to 24 hours. For a shorter turnaround time, we should upgrade...