1. The problem I’m having:
I want anyone to be able to add a domain to my site by pointing their domains to my server. I saw caddy can automatically issue SSL, but when I tried (by using an astrix in caddyfile) i got a warning along the lines of “no OCSP stapling for [*]”. How would I go about this? It works fine if I use a single domain, but I need an infinite amount.
2. Error messages and/or full log output:
Running systemctl status caddy outputs:
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.1616285,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.161742,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["*"]}
Nov 25 05:25:00 main caddy[12760]: {"level":"warn","ts":1700889900.1621225,"logger":"tls","msg":"stapling OCSP","error":"no OCSP stapling for [*]: no OCSP server specified in certificate","identifiers":["*"]}
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.173391,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/var/lib/caddy/.local/share/caddy"}
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.1741946,"logger":"tls","msg":"finished cleaning storage units"}
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.1745284,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0x40004f2100"}
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.177789,"logger":"pki.ca.local","msg":"root certificate is already trusted by system","path":"storage:pki/authorities/local/root.crt"}
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.178345,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 25 05:25:00 main systemd[1]: Started Caddy.
Nov 25 05:25:00 main caddy[12760]: {"level":"info","ts":1700889900.1823292,"msg":"serving initial configuration"}
3. Caddy version:
v2.7.5
4. How I installed and ran Caddy:
I installed it by following the docs (copy and paste) and than used an example a friend showed me along with verification from the docs on setup
a. System environment:
Ubuntu 22.04 on Oracle Cloud free tier
b. Command:
systemctl restart caddy
c. Service/unit/compose file:
d. My complete Caddy config:
* {
reverse_proxy localhost:8080
}