Dear,
Really I did not understood the topic template, but I’ll provide more details:
Ubuntu 24 with Caddy Version
root@ex:~# caddy -v
v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
The Caddy File
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
# Set this path to your site's directory.
{
on_demand_tls {
ask http://expired.nameservers.ma/caddy/ask
}
}
https:// {
tls {
on_demand
}
root * /usr/share/caddy
file_server
}
http://expired.nameservers.ma, https://expired.nameservers.ma {
root * /usr/share/caddy
file_server
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
The Caddy Log
journalctl --no-pager -u caddy
Nov 07 02:55:05 server systemd[1]: Reloading Caddy...
Nov 07 02:55:05 server caddy[2238]: {"level":"info","ts":1730948105.5361927,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 02:55:05 server caddy[2238]: {"level":"info","ts":1730948105.538317,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 02:55:05 server caddy[2238]: {"level":"warn","ts":1730948105.5383446,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5396686,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"51926","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["1302"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.541046,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//127.0.0.1:2019","//localhost:2019","//[::1]:2019"]}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5414145,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 02:55:05 server caddy[663]: {"level":"warn","ts":1730948105.5414414,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.542047,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5420752,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5421145,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5421205,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["expired.nameservers.ma"]}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5428908,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5437503,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5437996,"logger":"admin.api","msg":"load complete"}
Nov 07 02:55:05 server caddy[663]: {"level":"info","ts":1730948105.5462394,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 02:55:05 server systemd[1]: Reloaded Caddy.
Nov 07 02:55:06 server caddy[663]: {"level":"error","ts":1730948106.090279,"logger":"tls","msg":"failed to get permission for on-demand certificate","domain":"expired.nameservers.ma","error":"checking https://expired.nameservers.ma/ask to determine if certificate for hostname 'expired.nameservers.ma' should be allowed: Get \"https://expired.nameservers.ma/ask?domain=expired.nameservers.ma\": EOF"}
Nov 07 02:58:18 server systemd[1]: Reloading Caddy...
Nov 07 02:58:19 server caddy[2253]: {"level":"info","ts":1730948299.002485,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 02:58:19 server caddy[2253]: {"level":"info","ts":1730948299.0082428,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 02:58:19 server caddy[2253]: {"level":"warn","ts":1730948299.0086653,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.0118287,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"37838","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["974"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.0142498,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.015237,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 02:58:19 server caddy[663]: {"level":"warn","ts":1730948299.0153103,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.0160089,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.016116,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.016219,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.016257,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.017369,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.018239,"logger":"admin.api","msg":"load complete"}
Nov 07 02:58:19 server systemd[1]: Reloaded Caddy.
Nov 07 02:58:19 server caddy[663]: {"level":"info","ts":1730948299.0234504,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:00:49 server systemd[1]: Reloading Caddy...
Nov 07 03:00:49 server caddy[2264]: {"level":"info","ts":1730948449.365153,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:00:49 server caddy[2264]: {"level":"info","ts":1730948449.368472,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:00:49 server caddy[2264]: {"level":"warn","ts":1730948449.3685164,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3712387,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"34542","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["974"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3741136,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3745995,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:00:49 server caddy[663]: {"level":"warn","ts":1730948449.3746605,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3755262,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.375622,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3757076,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.375732,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3764546,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3765292,"logger":"admin.api","msg":"load complete"}
Nov 07 03:00:49 server caddy[663]: {"level":"info","ts":1730948449.3773916,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:00:49 server systemd[1]: Reloaded Caddy.
Nov 07 03:02:21 server systemd[1]: Reloading Caddy...
Nov 07 03:02:21 server caddy[2276]: {"level":"info","ts":1730948541.6313047,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:02:21 server caddy[2276]: {"level":"info","ts":1730948541.6327896,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:02:21 server caddy[2276]: {"level":"warn","ts":1730948541.632815,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6350768,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"55498","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["710"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6397688,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:02:21 server caddy[663]: {"level":"warn","ts":1730948541.6405625,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6405954,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.641702,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6420174,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6423862,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6426373,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6431515,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6442747,"logger":"admin.api","msg":"load complete"}
Nov 07 03:02:21 server caddy[663]: {"level":"info","ts":1730948541.6483328,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:02:21 server systemd[1]: Reloaded Caddy.
Nov 07 03:04:42 server systemd[1]: Reloading Caddy...
Nov 07 03:04:42 server caddy[2288]: {"level":"info","ts":1730948682.7220604,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:04:42 server caddy[2288]: {"level":"info","ts":1730948682.723369,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:04:42 server caddy[2288]: {"level":"warn","ts":1730948682.7233844,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7252007,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"38676","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["625"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7280087,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7287147,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:04:42 server caddy[663]: {"level":"warn","ts":1730948682.7293537,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7303448,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.730437,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.731018,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7310803,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.731737,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7318604,"logger":"admin.api","msg":"load complete"}
Nov 07 03:04:42 server caddy[663]: {"level":"info","ts":1730948682.7368784,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:04:42 server systemd[1]: Reloaded Caddy.
Nov 07 03:14:44 server systemd[1]: Reloading Caddy...
Nov 07 03:14:44 server caddy[2322]: {"level":"info","ts":1730949284.4176202,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:14:44 server caddy[2322]: {"level":"info","ts":1730949284.4201186,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:14:44 server caddy[2322]: {"level":"warn","ts":1730949284.4204113,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4301553,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"47766","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["631"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4378026,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4382353,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:14:44 server caddy[663]: {"level":"warn","ts":1730949284.4386423,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4392657,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4393404,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.439426,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4394534,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4402454,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.4414856,"logger":"admin.api","msg":"load complete"}
Nov 07 03:14:44 server caddy[663]: {"level":"info","ts":1730949284.442691,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:14:44 server systemd[1]: Reloaded Caddy.
Nov 07 03:15:11 server caddy[663]: {"level":"info","ts":1730949311.1548917,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
Nov 07 03:15:11 server caddy[663]: {"level":"warn","ts":1730949311.1551805,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
Nov 07 03:15:11 server caddy[663]: {"level":"info","ts":1730949311.1552176,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:15:11 server caddy[663]: {"level":"info","ts":1730949311.155752,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:15:11 server caddy[663]: {"level":"info","ts":1730949311.1557791,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
Nov 07 03:15:11 server systemd[1]: Stopping Caddy...
Nov 07 03:15:11 server systemd[1]: caddy.service: Deactivated successfully.
Nov 07 03:15:11 server systemd[1]: Stopped Caddy.
Nov 07 03:15:11 server systemd[1]: caddy.service: Consumed 9.411s CPU time.
Nov 07 03:15:11 server systemd[1]: Starting Caddy...
Nov 07 03:15:11 server caddy[2332]: caddy.HomeDir=/var/lib/caddy
Nov 07 03:15:11 server caddy[2332]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Nov 07 03:15:11 server caddy[2332]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Nov 07 03:15:11 server caddy[2332]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Nov 07 03:15:11 server caddy[2332]: caddy.Version=v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
Nov 07 03:15:11 server caddy[2332]: runtime.GOOS=linux
Nov 07 03:15:11 server caddy[2332]: runtime.GOARCH=amd64
Nov 07 03:15:11 server caddy[2332]: runtime.Compiler=gc
Nov 07 03:15:11 server caddy[2332]: runtime.NumCPU=2
Nov 07 03:15:11 server caddy[2332]: runtime.GOMAXPROCS=2
Nov 07 03:15:11 server caddy[2332]: runtime.Version=go1.22.3
Nov 07 03:15:11 server caddy[2332]: os.Getwd=/
Nov 07 03:15:11 server caddy[2332]: LANG=en_US.UTF-8
Nov 07 03:15:11 server caddy[2332]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Nov 07 03:15:11 server caddy[2332]: NOTIFY_SOCKET=/run/systemd/notify
Nov 07 03:15:11 server caddy[2332]: HOME=/var/lib/caddy
Nov 07 03:15:11 server caddy[2332]: LOGNAME=caddy
Nov 07 03:15:11 server caddy[2332]: USER=caddy
Nov 07 03:15:11 server caddy[2332]: INVOCATION_ID=5a452d7d013d4743bfe3ce5d7479a3ce
Nov 07 03:15:11 server caddy[2332]: JOURNAL_STREAM=8:28153
Nov 07 03:15:11 server caddy[2332]: SYSTEMD_EXEC_PID=2332
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.279801,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.284759,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:15:11 server caddy[2332]: {"level":"warn","ts":1730949311.2848666,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.2881112,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.2891095,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00064b880"}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.2893722,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:15:11 server caddy[2332]: {"level":"warn","ts":1730949311.2895622,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.290864,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.291565,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.2920702,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.2924385,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.2925708,"msg":"serving initial configuration"}
Nov 07 03:15:11 server systemd[1]: Started Caddy.
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.29916,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/share/caddy","instance":"2cb213fe-f469-4ff6-a9c7-c75fff7fae93","try_again":1731035711.299111,"try_again_in":86399.999998217}
Nov 07 03:15:11 server caddy[2332]: {"level":"info","ts":1730949311.3003056,"logger":"tls","msg":"finished cleaning storage units"}
Nov 07 03:15:18 server systemd[1]: Reloading Caddy...
Nov 07 03:15:18 server caddy[2342]: {"level":"info","ts":1730949318.5259867,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:15:18 server caddy[2342]: {"level":"info","ts":1730949318.5281842,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:15:18 server caddy[2342]: {"level":"warn","ts":1730949318.5282238,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5310962,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"58488","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["631"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.536857,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5374398,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:15:18 server caddy[2332]: {"level":"warn","ts":1730949318.5376673,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5384958,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.538578,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5387578,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.538794,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5412998,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5449173,"logger":"admin.api","msg":"load complete"}
Nov 07 03:15:18 server caddy[2332]: {"level":"info","ts":1730949318.5470521,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:15:18 server systemd[1]: Reloaded Caddy.
Nov 07 03:19:20 server caddy[2332]: {"level":"info","ts":1730949560.3452816,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
Nov 07 03:19:20 server caddy[2332]: {"level":"warn","ts":1730949560.3454924,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
Nov 07 03:19:20 server caddy[2332]: {"level":"info","ts":1730949560.3455434,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:19:20 server caddy[2332]: {"level":"info","ts":1730949560.3461125,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:19:20 server caddy[2332]: {"level":"info","ts":1730949560.3461406,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
Nov 07 03:19:20 server systemd[1]: Stopping Caddy...
Nov 07 03:19:20 server systemd[1]: caddy.service: Deactivated successfully.
Nov 07 03:19:20 server systemd[1]: Stopped Caddy.
-- Boot 85f8e016d3e5496ba4ae807663cdda70 --
Nov 07 03:19:36 server systemd[1]: Starting Caddy...
Nov 07 03:19:36 server caddy[663]: caddy.HomeDir=/var/lib/caddy
Nov 07 03:19:36 server caddy[663]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Nov 07 03:19:36 server caddy[663]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Nov 07 03:19:36 server caddy[663]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Nov 07 03:19:36 server caddy[663]: caddy.Version=v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
Nov 07 03:19:36 server caddy[663]: runtime.GOOS=linux
Nov 07 03:19:36 server caddy[663]: runtime.GOARCH=amd64
Nov 07 03:19:36 server caddy[663]: runtime.Compiler=gc
Nov 07 03:19:36 server caddy[663]: runtime.NumCPU=2
Nov 07 03:19:36 server caddy[663]: runtime.GOMAXPROCS=2
Nov 07 03:19:36 server caddy[663]: runtime.Version=go1.22.3
Nov 07 03:19:36 server caddy[663]: os.Getwd=/
Nov 07 03:19:36 server caddy[663]: LANG=en_US.UTF-8
Nov 07 03:19:36 server caddy[663]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Nov 07 03:19:36 server caddy[663]: NOTIFY_SOCKET=/run/systemd/notify
Nov 07 03:19:36 server caddy[663]: HOME=/var/lib/caddy
Nov 07 03:19:36 server caddy[663]: LOGNAME=caddy
Nov 07 03:19:36 server caddy[663]: USER=caddy
Nov 07 03:19:36 server caddy[663]: INVOCATION_ID=21ffb2ddcca84a0997b90643b9f071f5
Nov 07 03:19:36 server caddy[663]: JOURNAL_STREAM=8:17692
Nov 07 03:19:36 server caddy[663]: SYSTEMD_EXEC_PID=663
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.8936687,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.8979664,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:19:36 server caddy[663]: {"level":"warn","ts":1730949576.8984504,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9033928,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9063263,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00052ec00"}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9071572,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:19:36 server caddy[663]: {"level":"warn","ts":1730949576.9077265,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9107707,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9141965,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9148085,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9159915,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.916432,"msg":"serving initial configuration"}
Nov 07 03:19:36 server systemd[1]: Started Caddy.
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.919368,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/share/caddy","instance":"2cb213fe-f469-4ff6-a9c7-c75fff7fae93","try_again":1731035976.919332,"try_again_in":86399.999999064}
Nov 07 03:19:36 server caddy[663]: {"level":"info","ts":1730949576.9195054,"logger":"tls","msg":"finished cleaning storage units"}
Nov 07 03:26:15 server systemd[1]: Reloading Caddy...
Nov 07 03:26:15 server caddy[939]: {"level":"info","ts":1730949975.5076644,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:26:15 server caddy[939]: {"level":"info","ts":1730949975.511775,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:26:15 server caddy[939]: {"level":"warn","ts":1730949975.5118382,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.5163722,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"37800","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["797"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.5181508,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.518549,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:26:15 server caddy[663]: {"level":"warn","ts":1730949975.5187473,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.5220957,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.5221593,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.522247,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.5222924,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.5236068,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.524537,"logger":"admin.api","msg":"load complete"}
Nov 07 03:26:15 server systemd[1]: Reloaded Caddy.
Nov 07 03:26:15 server caddy[663]: {"level":"info","ts":1730949975.535272,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:30:42 server systemd[1]: Reloading Caddy...
Nov 07 03:30:42 server caddy[956]: {"level":"info","ts":1730950242.9168973,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:30:42 server caddy[956]: {"level":"info","ts":1730950242.9190035,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:30:42 server caddy[956]: {"level":"warn","ts":1730950242.919038,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9288082,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"52180","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["522"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9312067,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9354925,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:30:42 server caddy[663]: {"level":"warn","ts":1730950242.9355106,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9359303,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.935975,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.936024,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9360602,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9376254,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.937714,"logger":"admin.api","msg":"load complete"}
Nov 07 03:30:42 server systemd[1]: Reloaded Caddy.
Nov 07 03:30:42 server caddy[663]: {"level":"info","ts":1730950242.9472952,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:33:59 server systemd[1]: Reloading Caddy...
Nov 07 03:33:59 server caddy[970]: {"level":"info","ts":1730950439.1301243,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:33:59 server caddy[970]: {"level":"info","ts":1730950439.137727,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:33:59 server caddy[970]: {"level":"warn","ts":1730950439.1378148,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1427705,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"36394","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["1138"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1453512,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1463192,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:33:59 server caddy[663]: {"level":"warn","ts":1730950439.146696,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1475542,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1478407,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1482484,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1485343,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["expired.nameservers.ma"]}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1527557,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.153719,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1546454,"logger":"admin.api","msg":"load complete"}
Nov 07 03:33:59 server systemd[1]: Reloaded Caddy.
Nov 07 03:33:59 server caddy[663]: {"level":"info","ts":1730950439.1643522,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:37:42 server systemd[1]: Reloading Caddy...
Nov 07 03:37:42 server caddy[989]: {"level":"info","ts":1730950662.410815,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:37:42 server caddy[989]: {"level":"info","ts":1730950662.4156086,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:37:42 server caddy[989]: {"level":"warn","ts":1730950662.4156735,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4205244,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"34808","headers":{"Accept-Encoding":["gzip"],"Cache-Control":["must-revalidate"],"Content-Length":["959"],"Content-Type":["application/json"],"Origin":["http://localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4228091,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4237275,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:37:42 server caddy[663]: {"level":"warn","ts":1730950662.4237697,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4244516,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4245093,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.424579,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4245875,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["expired.nameservers.ma"]}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.424651,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4253235,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4253967,"logger":"admin.api","msg":"load complete"}
Nov 07 03:37:42 server caddy[663]: {"level":"info","ts":1730950662.4348278,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:37:42 server systemd[1]: Reloaded Caddy.
Nov 07 03:38:04 server caddy[663]: {"level":"info","ts":1730950684.5953896,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
Nov 07 03:38:04 server caddy[663]: {"level":"warn","ts":1730950684.5957146,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
Nov 07 03:38:04 server caddy[663]: {"level":"info","ts":1730950684.595816,"logger":"http","msg":"servers shutting down with eternal grace period"}
Nov 07 03:38:04 server caddy[663]: {"level":"info","ts":1730950684.5964818,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
Nov 07 03:38:04 server caddy[663]: {"level":"info","ts":1730950684.5965078,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
Nov 07 03:38:04 server systemd[1]: Stopping Caddy...
Nov 07 03:38:04 server systemd[1]: caddy.service: Deactivated successfully.
Nov 07 03:38:04 server systemd[1]: Stopped Caddy.
Nov 07 03:38:04 server systemd[1]: caddy.service: Consumed 1.251s CPU time.
Nov 07 03:38:42 server systemd[1]: Starting Caddy...
Nov 07 03:38:42 server caddy[1005]: caddy.HomeDir=/var/lib/caddy
Nov 07 03:38:42 server caddy[1005]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Nov 07 03:38:42 server caddy[1005]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Nov 07 03:38:42 server caddy[1005]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Nov 07 03:38:42 server caddy[1005]: caddy.Version=v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
Nov 07 03:38:42 server caddy[1005]: runtime.GOOS=linux
Nov 07 03:38:42 server caddy[1005]: runtime.GOARCH=amd64
Nov 07 03:38:42 server caddy[1005]: runtime.Compiler=gc
Nov 07 03:38:42 server caddy[1005]: runtime.NumCPU=2
Nov 07 03:38:42 server caddy[1005]: runtime.GOMAXPROCS=2
Nov 07 03:38:42 server caddy[1005]: runtime.Version=go1.22.3
Nov 07 03:38:42 server caddy[1005]: os.Getwd=/
Nov 07 03:38:42 server caddy[1005]: LANG=en_US.UTF-8
Nov 07 03:38:42 server caddy[1005]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Nov 07 03:38:42 server caddy[1005]: NOTIFY_SOCKET=/run/systemd/notify
Nov 07 03:38:42 server caddy[1005]: HOME=/var/lib/caddy
Nov 07 03:38:42 server caddy[1005]: LOGNAME=caddy
Nov 07 03:38:42 server caddy[1005]: USER=caddy
Nov 07 03:38:42 server caddy[1005]: INVOCATION_ID=ff1fad31c5ad4fd7bce52133b751aa7e
Nov 07 03:38:42 server caddy[1005]: JOURNAL_STREAM=8:19309
Nov 07 03:38:42 server caddy[1005]: SYSTEMD_EXEC_PID=1005
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4667313,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4686897,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:38:42 server caddy[1005]: {"level":"warn","ts":1730950722.4689112,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":12}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4711711,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4718199,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:38:42 server caddy[1005]: {"level":"warn","ts":1730950722.4721107,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.471916,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00029dd80"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4728277,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4733152,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.473691,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4738386,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["expired.nameservers.ma"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4750056,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.475278,"msg":"serving initial configuration"}
Nov 07 03:38:42 server systemd[1]: Started Caddy.
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4809952,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/share/caddy","instance":"2cb213fe-f469-4ff6-a9c7-c75fff7fae93","try_again":1731037122.480989,"try_again_in":86399.99999845}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4811761,"logger":"tls","msg":"finished cleaning storage units"}
Nov 07 06:58:43 ex.htoubbi.com caddy[1005]: {"level":"info","ts":1730962723.1141305,"logger":"tls.acme_client","msg":"got renewal info","names":["expired.nameservers.ma"],"window_start":1736036287.6666667,"window_end":1736209087.6666667,"selected_time":1736054080,"recheck_after":1730984323.1141162,"explanation_url":""}
Nov 07 06:58:43 ex.htoubbi.com caddy[1005]: {"level":"info","ts":1730962723.1168501,"logger":"tls.cache.maintenance","msg":"updated ACME renewal information","identifiers":["expired.nameservers.ma"],"cert_hash":"762211c7521734fc9bb782456bbed9c3f160f76608d587a3fc3d9d151158186b","ari_unique_id":"nytfzzwhT50Et-0rLMTGcIvS1w0.BFGmtKAwRRtPcvEG3qvB1BMJ","cert_expiry":1738713517,"selected_time":1736183170,"next_update":1730984323.1141162,"explanation_url":""}
Caddy Status
caddy.service - Caddy
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2024-11-07 03:38:42 UTC; 8h ago
Docs: https://caddyserver.com/docs/
Main PID: 1005 (caddy)
Tasks: 9 (limit: 4532)
Memory: 11.1M
CPU: 5.044s
CGroup: /system.slice/caddy.service
└─1005 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4733152,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.473691,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4738386,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["expired.nameservers.ma"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4750056,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.475278,"msg":"serving initial configuration"}
Nov 07 03:38:42 server systemd[1]: Started Caddy.
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4809952,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/l>
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4811761,"logger":"tls","msg":"finished cleaning storage units"}
Nov 07 06:58:43 ex.htoubbi.com caddy[1005]: {"level":"info","ts":1730962723.1141305,"logger":"tls.acme_client","msg":"got renewal info","names":["expired.nameservers.ma"],"window_start">
Nov 07 06:58:43 ex.htoubbi.com caddy[1005]: {"level":"info","ts":1730962723.1168501,"logger":"tls.cache.maintenance","msg":"updated ACME renewal information","identifiers":["expired.nam>
~
Another log
root@ex:~# journalctl -xeu caddy.service
░░
░░ The unit caddy.service completed and consumed the indicated resources.
Nov 07 03:38:42 server systemd[1]: Starting Caddy...
░░ Subject: A start job for unit caddy.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit caddy.service has begun execution.
░░
░░ The job identifier is 627.
Nov 07 03:38:42 server caddy[1005]: caddy.HomeDir=/var/lib/caddy
Nov 07 03:38:42 server caddy[1005]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Nov 07 03:38:42 server caddy[1005]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Nov 07 03:38:42 server caddy[1005]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Nov 07 03:38:42 server caddy[1005]: caddy.Version=v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
Nov 07 03:38:42 server caddy[1005]: runtime.GOOS=linux
Nov 07 03:38:42 server caddy[1005]: runtime.GOARCH=amd64
Nov 07 03:38:42 server caddy[1005]: runtime.Compiler=gc
Nov 07 03:38:42 server caddy[1005]: runtime.NumCPU=2
Nov 07 03:38:42 server caddy[1005]: runtime.GOMAXPROCS=2
Nov 07 03:38:42 server caddy[1005]: runtime.Version=go1.22.3
Nov 07 03:38:42 server caddy[1005]: os.Getwd=/
Nov 07 03:38:42 server caddy[1005]: LANG=en_US.UTF-8
Nov 07 03:38:42 server caddy[1005]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Nov 07 03:38:42 server caddy[1005]: NOTIFY_SOCKET=/run/systemd/notify
Nov 07 03:38:42 server caddy[1005]: HOME=/var/lib/caddy
Nov 07 03:38:42 server caddy[1005]: LOGNAME=caddy
Nov 07 03:38:42 server caddy[1005]: USER=caddy
Nov 07 03:38:42 server caddy[1005]: INVOCATION_ID=ff1fad31c5ad4fd7bce52133b751aa7e
Nov 07 03:38:42 server caddy[1005]: JOURNAL_STREAM=8:19309
Nov 07 03:38:42 server caddy[1005]: SYSTEMD_EXEC_PID=1005
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4667313,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4686897,"msg":"adapted config to JSON","adapter":"caddyfile"}
Nov 07 03:38:42 server caddy[1005]: {"level":"warn","ts":1730950722.4689112,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc>
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4711711,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019">
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4718199,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Nov 07 03:38:42 server caddy[1005]: {"level":"warn","ts":1730950722.4721107,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this serv>
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.471916,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00029dd80"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4728277,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4733152,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.473691,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4738386,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["expired.nameservers.ma"]}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4750056,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.475278,"msg":"serving initial configuration"}
Nov 07 03:38:42 server systemd[1]: Started Caddy.
░░ Subject: A start job for unit caddy.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit caddy.service has finished successfully.
░░
░░ The job identifier is 627.
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4809952,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/sh>
Nov 07 03:38:42 server caddy[1005]: {"level":"info","ts":1730950722.4811761,"logger":"tls","msg":"finished cleaning storage units"}
Nov 07 06:58:43 ex.htoubbi.com caddy[1005]: {"level":"info","ts":1730962723.1141305,"logger":"tls.acme_client","msg":"got renewal info","names":["expired.nameservers.ma"],"window_start":1736036287.666666>
Nov 07 06:58:43 ex.htoubbi.com caddy[1005]: {"level":"info","ts":1730962723.1168501,"logger":"tls.cache.maintenance","msg":"updated ACME renewal information","identifiers":["expired.nameservers.ma"],"cer>
lines 1970-2025/2025 (END)
The curl -v result
root@ex:~# curl -v http://expired.nameservers.ma/caddy/ask?domain=ex.htoubbi.com
* Trying 116.202.12.10:80...
* Connected to expired.nameservers.ma (116.202.12.10) port 80 (#0)
> GET /caddy/ask?domain=ex.htoubbi.com HTTP/1.1
> Host: expired.nameservers.ma
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Server: Caddy
< Date: Thu, 07 Nov 2024 12:42:30 GMT
< Content-Length: 0
<
* Connection #0 to host expired.nameservers.ma left intact
another curl -v Test
root@ex:~# curl -v https://expired.nameservers.ma/caddy/ask?domain=vps.htoubbi.com
* Trying 116.202.12.10:443...
* Connected to expired.nameservers.ma (116.202.12.10) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=expired.nameservers.ma
* start date: Nov 6 23:58:38 2024 GMT
* expire date: Feb 4 23:58:37 2025 GMT
* subjectAltName: host "expired.nameservers.ma" matched cert's "expired.nameservers.ma"
* issuer: C=US; O=Let's Encrypt; CN=E5
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x5647029aaeb0)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET /caddy/ask?domain=vps.htoubbi.com HTTP/2
> Host: expired.nameservers.ma
> user-agent: curl/7.81.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 404
< alt-svc: h3=":443"; ma=2592000
< server: Caddy
< content-length: 0
< date: Thu, 07 Nov 2024 12:47:02 GMT
<
* Connection #0 to host expired.nameservers.ma left intact
root@ex:~#