But what if I don’t want to add a domain in DO?
In other words, I don’t want to manage DNS with DO.
I want to keep DNS handling on the domain registrar side. And just make an A-record that points to the DO server.
In this case some problems appear.
Website successfully shown in HTTP. But it seems like Traefik can’t install an SSL-certificate in this case. So no HTTPS.
By default, Traefik uses the HTTP challenge for fetching Let’s Encrypt certificates - this means you can use any DNS provider you wish, as long as the DNS record points to your server’s IP address.
I suggest restarting Traefik to see if it initiates the Let’s Encrypt challenge. I’m unsure of the exact command to restart Traefik (as I don’t use Wappler’s deployment), so I suggest restarting the entire machine and see if Traefik magically brings HTTPS once the VPS boots up again
There is a long initial log regarding my different efforts.
Here are the last two records, most of the past are mostly similar.
As seen, first I tried subdomain, then I just tried main domain.
(I changed site URL in the log)
traefik | time="2021-12-16T07:35:19Z" level=error msg="Unable to obtain ACME certificate for domains "subdomain.sitename.ru": unable to generate a
certificate for the domains [subdomain.sitename.ru]: error: one or more domains had a problem:\n[subdomain.sitename.ru] acme: error: 400 :: urn:iet
f:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for subdomain.sitename.ru - check that a DNS record exists for this domain, url: \n" pr
oviderName=leresolver.acme routerName=squiz-online__do_prod_web-secure@docker rule="Host(subdomain.sitename.ru)"
traefik | time="2021-12-16T07:35:19Z" level=error msg="Unable to obtain ACME certificate for domains "sitename.ru": unable to generate a certi
ficate for the domains [sitename.ru]: error: one or more domains had a problem:\n[sitename.ru] acme: error: 403 :: urn:ietf:params:acme:erro
r:unauthorized :: Cannot negotiate ALPN protocol "acme-tls/1" for tls-alpn-01 challenge, url: \n" providerName=leresolver.acme routerName=squiz-onli
ne__prod_do_web-secure@docker rule="Host(sitename.ru)"
Though I can paste all complete log too if it helps.
Definitely, Let's Encrypt (and any other software) would attempt to reach the IPv6 address first, reaching the wrong server. Sounds like you're headed for a success now!