Cloudflare

Creating a Cloudflare account

Follow the instructions in this page below to create your Cloudflare account.

Registering a Domain Name (also known as buying a domain name)

1. Login to Cloudflare Dashboard (dash.cloudflare.com) and click on Register Domains in the sidebar

Click on Register Domains to bring you to this page

2. Type in a domain name of your choice and click purchase

Enter a domain name and click on purchase

3. Select a 1 year registration and fill in your registrant information

Select 1 year and fill in the registrant information section

4. Select the payment method of your choice

Select your payment method

5. Click on Complete Purchase to buy your domain name

Click on complete purchase

6. Congrats you've just purchased your domain name!

You should see this screen once you have purchased your domain name

Linking my domain name to my web app (using the Sample Web App as an example)

You should have already set up your Sample Web App before linking your domain name. If you have yet to do so, please follow the instructions here Sample Web App.

To link your domain name to the sample web app, there are three things you will need to do:

  • Enable full SSL/TLS encryption on Cloudflare

  • Setup Render to use a custom domain name for your Sample Web App

  • Setup Cloudflare's DNS to point to the Sample Web App deployed on Render

1. Go to Cloudflare Dashboard (dash.cloudflare.com) and click on the domain name you purchased

Click on your domain name

2. Click on the SSL/TLS tab in the sidebar

Click on the SSL/TLS tab in the sidebar

3. Set the SSL/TLS encryption mode to Full

Select Full to change SSL/TLS encryption mode
Click on Confirm to continue
Your SSL/TLS encryption mode should now be set to full

4. Go to Render Dashboard (dashboard.render.com) and click on your web app (in this example the sample web app is selected)

Select your web application on Render

5. Click on Settings to Add a Custom Domain Name

Click on Settings
Scroll down to the section on custom domains
Enter your domain name and click save
You should see something similar, click on the copy icon to copy the onrender.com URL which will be used for the nest step

6. Go to Cloudflare Dashboard (dash.cloudflare.com) and click on your domain name

Click on your domain name

7. Click on DNS to go to the page to edit your DNS Records, then click on Add Record

Click on DNS in the sidebar then click on Add Record

8. Add a new DNS Record

Add a new CNAME record with the Target being the onrender.com URL you copied earlier in Step 5, then click Save

9. Go back to your Render Dashboard and click on Verify

Click on Verify
It may take some time for the domain to be verified and for a certificate to be automatically generated
Congrats! You have now set up a custom domain name for your app!

Last updated