Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 2.23 KB

cloudflare.md

File metadata and controls

36 lines (21 loc) · 2.23 KB
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 1 column 21
---
nameserver-pattern: `*.ns.cloudflare.com`
---

Cloudflare at a glance

Does Doesn't
Apex CNAME equivalent ✔️
API Access ✔️

CloudFlare allows you to create a CNAME record at the apex domain, however to maintain RFC compliance, Cloudflare performs what they call "CNAME Flattening.". The net effect is that your users' DNS clients receive an IP address as if the apex domain's resource record was an A record, however behind the scenes, Cloudflare is recursively resolving your CNAME.

Using the Apex Domain

  1. Log in to your Cloudflare account, select the domain that you want to use with your Fly Edge App, and select "DNS" from the dashboard:

Cloudflare - Go to your DNS dashboard

  1. Make sure that no A, AAAA, or CNAME records already exist for your apex domain. If they do, delete them:

Cloudflare - Remove apex records

Otherwise you'll encounter the error "An A, AAAA, or CNAME record already exists with that host. (Code: 81053)"

Cloudflare - An A, AAAA, or CNAME record already exists with that host. (Code: 81053)

  1. Create a CNAME record for your apex domain using @ as the name, your Fly Edge App URL as the domain name, and click the "Orange Cloud" icon to become grey:

Cloudflare - Add an apex CNAME record

Once you've saved that record, your domain should be directed to your Fly Edge App!

Using a Subdomain

If you want your application to use a subdomain on your main domain, you can use the same instructions as above except instead of @ for the name, use the name that you'd prefer for your subdomain. For example, app for your application to use app.your-application.com for its URLs.