โ๏ธCloudflare Setup
Step-by-step DNS configuration to route projectmanager.rifaterdemsahin.com through Cloudflare to Fly.io with TLS.
โ๏ธ Cloudflare โ Fly.io DNS Setup
Route traffic for projectmanager.rifaterdemsahin.com from Cloudflare to the Fly.io app project-manager.
๐Get Fly.io IP Addresses
Prerequisite: the Fly app must already be deployed. Find the public IPv4 and IPv6 addresses assigned to your Fly.io app.
List current IPs:
fly ips list -a project-managerIf no IPs are assigned yet, allocate them:
fly ips allocate-v4 -a project-manager
fly ips allocate-v6 -a project-manager66.241.124.x) and IPv6 addresses โ you'll need them in Step 3.๐Add Custom Domain in Fly.io
Fly.io handles TLS certificate generation and routing via its edge proxy. Register the subdomain:
fly certs add projectmanager.rifaterdemsahin.com -a project-manager_acme-challenge CNAME record) if DNS challenge verification is required. Add those to Cloudflare if prompted.๐Configure DNS Records in Cloudflare
Log in to the Cloudflare Dashboard, open rifaterdemsahin.com, and go to DNS โ Records. Add:
| Type | Name | Content / Value | Proxy status |
|---|---|---|---|
| A | projectmanager | <Your Fly.io IPv4 address> | DNS only (Grey cloud) |
| AAAA | projectmanager | <Your Fly.io IPv6 address> | DNS only (Grey cloud) |
CNAME for projectmanager to project-manager.fly.dev with Proxy set to DNS only.โ Verify Certificate Issuance on Fly.io
Check whether Fly.io has verified your DNS and provisioned the SSL/TLS certificate:
fly certs check projectmanager.rifaterdemsahin.com -a project-managerhttps://projectmanager.rifaterdemsahin.com.๐ก๏ธDecide on Cloudflare Proxying (Orange Cloud)
OptionalIf you want Cloudflare's CDN, caching, and DDoS protection:
- Switch the proxy status on your A and AAAA records in Cloudflare from DNS only to Proxied (orange cloud).
- Go to SSL/TLS in Cloudflare and set the encryption mode to Full (strict).
ERR_TOO_MANY_REDIRECTS loop.๐ฏ What to do on your Cloudflare DNS page
- Open your DNS records page.
- Click Add record โ Type: A, Name: projectmanager, Content: your Fly.io IPv4, Proxy status: DNS only (grey cloud). Save.
- Click Add record โ Type: AAAA, Name: projectmanager, Content: your Fly.io IPv6, Proxy status: DNS only (grey cloud). Save.
- (Later, optional) Switch both records to Proxied (orange cloud) and set SSL/TLS to Full (strict).
Get your IPs first: fly ips list -a project-manager