1. Caddy version (caddy version
):
2.4.6
2. How I run Caddy:
a. System environment:
Win10 x64 v21H1
b. Command:
caddy_windows_amd64.exe run -config "caddyfile"
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
web.thedomain.com:8443 {
reverse_proxy :81
}
3. The problem I’m having:
This looks like a bug to me, but wanted to make sure I wasn’t missing something.
If I don’t use the -config param, the caddyfile is used and there is no problem, but if I use the -config param, Caddy complains about the first character in the file, a “w”, and drops out.
4. Error messages and/or full log output:
INFO using provided configuration {“config_file”: “caddyfile”, “config_adapter”: “”}
run: loading initial config: decoding request body: invalid character ‘w’ looking for beginning of value
5. What I already tried:
Quote symbols around the filename don’t change anything.