1. Caddy version (caddy version
): v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=
2. How I run Caddy:
I run caddy by executing caddy run
in my terminal window.
a. System environment:
AlmaLinux release 8.5
b. Command:
caddy run -adapter caddyfile -config Caddyfile
c. Service/unit/compose file: –
d. My complete Caddyfile:
{
pki {
}
}
3. The problem I’m having:
When I run caddy run -adapter caddyfile -config Caddyfile
, I get the error message stating that the pki
global option is not recognized.
4. Error messages and/or full log output:
[user@host caddy-server]$ sudo caddy run
2022/04/05 09:53:02.434 INFO using adjacent Caddyfile
run: adapting config using caddyfile: Caddyfile:3: unrecognized global option: pki
5. What I already tried:
When I run caddy using JSON config instead of Caddyfile, Caddy recognizes the pki
app and runs perfectly well. Example JSON config I tested this with:
{
"apps" {
"pki": { }
}
}