Custom domain not working

I have a Phoenix application for which I want to set up a custom domain. I have done this configuration for other applications before, but in this case, it doesn’t want to work for me.

I have already done the configuration using the A and AAA records, in addition to the CNAME _acme-challenge, but it does not work.

The certificate for stg.work-logs.kommitapp.co has not been issued yet.

Hostname                  = stg.work-logs.kommitapp.co
DNS Provider              = cloudflare
Certificate Authority     = Let's Encrypt
Issued                    =
Added to App              = 40 minutes ago
Source                    = fly
You are creating a certificate for stg.work-logs.kommitapp.co
We are using Let's Encrypt for this certificate.

You can configure your DNS for stg.work-logs.kommitapp.co by:

1: Adding an CNAME record to your DNS service which reads:

    CNAME stg.work-logs. work-logs-stg.fly.dev

Something striking is that I am using dnsimple, but with the command flyctl certs show cloudflare appears.

The same problem I have with the work-logs application.

Any solution?

The nameservers for your domain do appear to be pointed to cloudflare:

lillian ~ % dig NS kommitapp.co +short
keenan.ns.cloudflare.com.
rihana.ns.cloudflare.com.

lillian ~ % whois kommitapp.co
[...]
Name Server: KEENAN.NS.CLOUDFLARE.COM
Name Server: RIHANA.NS.CLOUDFLARE.COM

are the dnsimple nameservers correctly set with your domain registrar?

I would think so, just copy and paste the info Fly provided me in the credentials section.

A	    stg.work-logs.kommitapp.co	66.***.***.***	 
AAAA	stg.work-logs.kommitapp.co	2a09:****:*::**:***	 
CNAME	_acme-challenge.*****	    stg.work-logs.****

Strangely dig NS kommitapp.co +short returns cloudflare, but I have dnsimple as provider.


Update:

I have my Secondary DNS configured with:

keenan.ns.cloudflare.com
rihana.ns.cloudflare.com

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.