1. The problem I’m having:
I have been trying to connect to a local application called foundry, I’m using duckdns.org as the ddns.
I have registered a subdomain with my public ip address, installed caddy and the program, run the program indicating that a reverse proxy is being used and used the following caddyfile:
consolacao.duckdns.org {
reverse_proxy :30000
}
The version I have has the duckdns plugin installed.
2. Error messages and/or full log output:
Mar 10 02:50:59 ana-ubuntu systemd[1]: Reloading caddy.service - Caddy...
Mar 10 02:50:59 ana-ubuntu caddy[2089580]: {"level":"info","ts":1741575059.4857552,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Mar 10 02:50:59 ana-ubuntu caddy[2089580]: {"level":"info","ts":1741575059.4869509,"msg":"adapted config to JSON","adapter":"caddyfile"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4874046,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"34876","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["251"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4879153,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4880126,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4880257,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4882114,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4882238,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"warn","ts":1741575059.4882584,"logger":"http","msg":"HTTP/2 skipped because it requires TLS","network":"tcp","addr":":80"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"warn","ts":1741575059.4882638,"logger":"http","msg":"HTTP/3 skipped because it requires TLS","network":"tcp","addr":":80"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4882674,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4882715,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["consolacao.duckdns.org"]}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4882815,"logger":"http","msg":"servers shutting down with eternal grace period"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.488418,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4884686,"logger":"admin.api","msg":"load complete"}
Mar 10 02:50:59 ana-ubuntu caddy[2076296]: {"level":"info","ts":1741575059.4895508,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
3. Caddy version:
v2.9.1 h1:OEYiZ7DbCzAWVb6TNEkjRcSCRGHVoZsJinoDR/n9oaY=
a. System environment:
Ubuntu 24.04 LTS amd64
b. Command:
sudo systemctl status caddy
It indicates it is active and gives me the provided log
d. My complete Caddy config:
consolacao.duckdns.org {
# Set this path to your site's directory.
reverse_proxy :30000
}