1. The problem I’m having:
I’m trying to setup a reverse proxy for my RasPi homelab, I bought a domain name on Njalla, and I keep getting too many requests
errors.
Here’s the cURL output:
* Could not resolve host: portainer.rubuslabeu
* Closing connection 0
curl: (6) Could not resolve host: portainer.rubuslab.eu
2. Error messages and/or full log output:
Aug 25 21:18:49 DietPi caddy[54355]: {"level":"error","ts":1724617129.7772267,"logger":"http.acme_client","msg":"validating authorization","identifier":"pihole.rubuslab.eu","error":"authorization failed: HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for pihole.rubuslab.eu - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for pihole.rubuslab.eu - check that a DNS record exists for this domain","order":"https://acme-v02.api.letsencrypt.org/acme/order/1910427286/299430815036","attempt":1,"max_attempts":3}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"debug","ts":1724617131.1499095,"logger":"http.acme_client","msg":"no solver configured","challenge_type":"dns-01"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"info","ts":1724617131.149934,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"pihole.rubuslab.eu","challenge_type":"http-01","ca":"https://acme-v02.api.letsencrypt.org/directory"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"debug","ts":1724617131.1621313,"logger":"http.acme_client","msg":"no solver configured","challenge_type":"dns-01"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"info","ts":1724617131.1621513,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"portainer.rubuslab.eu","challenge_type":"http-01","ca":"https://acme-v02.api.letsencrypt.org/directory"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"debug","ts":1724617131.3122153,"logger":"http.acme_client","msg":"challenge accepted","identifier":"pihole.rubuslab.eu","challenge_type":"http-01"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"debug","ts":1724617131.321979,"logger":"http.acme_client","msg":"challenge accepted","identifier":"portainer.rubuslab.eu","challenge_type":"http-01"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"error","ts":1724617131.7240512,"logger":"http.acme_client","msg":"challenge failed","identifier":"pihole.rubuslab.eu","challenge_type":"http-01","status_code":400,"problem_type":"urn:ietf:params:acme:error:dns","error":"DNS problem: NXDOMAIN looking up A for pihole.rubuslab.eu - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for pihole.rubuslab.eu - check that a DNS record exists for this domain"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"error","ts":1724617131.7240858,"logger":"http.acme_client","msg":"validating authorization","identifier":"pihole.rubuslab.eu","error":"authorization failed: HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for pihole.rubuslab.eu - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for pihole.rubuslab.eu - check that a DNS record exists for this domain","order":"https://acme-v02.api.letsencrypt.org/acme/order/1910427286/299430819976","attempt":2,"max_attempts":3}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"error","ts":1724617131.7297356,"logger":"http.acme_client","msg":"challenge failed","identifier":"portainer.rubuslab.eu","challenge_type":"http-01","status_code":400,"problem_type":"urn:ietf:params:acme:error:dns","error":"DNS problem: NXDOMAIN looking up A for portainer.rubuslab.eu - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for portainer.rubuslab.eu - check that a DNS record exists for this domain"}
Aug 25 21:18:51 DietPi caddy[54355]: {"level":"error","ts":1724617131.7297592,"logger":"http.acme_client","msg":"validating authorization","identifier":"portainer.rubuslab.eu","error":"authorization failed: HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for portainer.rubuslab.eu - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for portainer.rubuslab.eu - check that a DNS record exists for this domain","order":"https://acme-v02.api.letsencrypt.org/acme/order/1910427286/299430820006","attempt":2,"max_attempts":3}
3. Caddy version:
Caddy version: 2.6.2
4. How I installed and ran Caddy:
Through apt
and managed it with systemctl
a. System environment:
Dietpi, ARM64, systemd.
b. Command:
N/A
c. Service/unit/compose file:
N/A
d. My complete Caddy config:
My caddyfile
{
debug
http_port 32768
https_port 32769
email redacted@mailbox.org
}
pihole.rubuslab.eu {
reverse_proxy :80
}
portainer.rubuslab.eu {
reverse_proxy portainer:9000
}