1. Caddy version (caddy version
): v2.5.1
2. How I run Caddy:
/root/caddy run --config /etc/caddy/caddy.json
a. System environment:
os: ubuntu18.04
b. Command:
/root/caddy run --config /etc/caddy/caddy.json
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
the following is the contents of /etc/caddy/caddy.json
{
"admin": {
"disabled": true
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":1443"
],
"logs": {},
"routes": [
{
"handle": [
{
"handler": "forward_proxy",
"hide_ip": true,
"hide_via": true,
"auth_user": "myusername",
"auth_pass": "mypassword"
}
]
},
{
"match": [
{
"host": [
"cd.smt.biz.st"
]
}
],
"handle": [
{
"handler": "vars",
"root": "/var/www/html"
}
],
"terminal": true
}
],
"tls_connection_policies": [
{
"match": {
"sni": [
"cd.smt.biz.st"
]
}
}
],
"experimental_http3": true,
"allow_h2c": true
}
}
},
"tls": {
"automation": {
"policies": [
{
"subjects": [
"cd.smt.biz.st"
],
"issuer": {
"email": "xyz@12.com",
"module": "acme"
}
}
]
}
}
}
}
3. The problem Iâm having:
i ran command: /root/caddy run --config /etc/caddy/caddy.json
i got the error message as below.
4. Error messages and/or full log output:
2022/07/06 15:36:57.338 INFO using provided configuration {"config_file": "/etc/caddy/caddy.json", "config_adapter": ""}
2022/07/06 15:36:57.341 WARN admin admin endpoint disabled
run: loading initial config: loading new config: loading http app module: provision http: getting tls
app: loading tls app module: decoding module config: tls: json: unknown field "issuer"
5. What I already tried:
6. Links to relevant resources:
how to fix it?