This article explains how to configure a DreamObjects bucket so that its content can be accelerated and protected using Cloudflare.
This configuration is NOT the same as the Cloudflare subscription options offered by DreamHost since it requires that the root domain use Cloudflare's nameservers.
This article assumes the following about your website configuration:
Create a Cloudflare account
Creating an account with Cloudflare can be done in two ways.
Create an account directly with Cloudflare
You can create directly with Cloudflare:
Create a Cloudflare account in your DreamHost panel
You could also create a Cloudflare account within your DreamHost panel. View the following articles for details:
Make sure that when you're adding Cloudflare to your domain you specify that it is a "New Account".
Add your domain to your Cloudflare account
Add your domain to your CloudFlare account. This assigns a pair of Cloudflare nameservers to the domain and allows you to manage your domain's DNS entries at Cloudflare. For more information about adding a domain to Cloudflare, see their documentation here:
During this process you'll see the nameservers Cloudflare assigns to your domain. They will appear like this:
Copy those nameservers as you'll need to change them in your DreamHost panel in the next step.
Point the domain's nameservers to Cloudflare
In your DreamHost account, update your domain registration's nameservers to point to Cloudflare. For more information about changing a domain's nameservers to Cloudflare, view the following articles:
Create a bucket and Cloudflare DNS record
Create a bucket and subdomain to use when accessing your content.
The name you give the bucket must be the same name you give your subdomain. This name must also be a fully-qualified domain name (FQDN). For example, if your new bucket is named 'mynewbucket.example.com', the DNS entry you create within the Cloudflare panel should be 'mynewbucket.example.com'.
This example uses mycdn.example.com.
Create a bucket in your DreamObjects panel
Create a bucket named 'mycdn.example.com'. View the following article for instructions on how to create a new bucket in your DreamObjects panel.
Create a CNAME record in your Cloudflare account
- Log into your Cloudflare account.
- Click the DNS button in the top menu.
- You'll see several DNS fields below. Create a CNAME DNS record with the following settings. Make sure to change 'mycdn' to your bucket name and example.com to your actual domain name:
- Type: In the dropdown menu, select 'CNAME'
- Name: mycdn.example.com
- Domain name: mycdn.example.com.objects-us-east-1.dream.io
For more information about adding CNAME records in Cloudflare, see their documentation here:
How long until it's working?
As soon as DNS information propagates, your bucket's content will be reachable using the subdomain record you created.