Closed U5B closed 1 year ago
Works fine for me. I think the problem is that ne
you have in there, which makes the {
token immediately before it not match as a valid opening brace token.
hmm I added a newline to the top and that removed the error
I removed ne
(that wasn't supposed to be there anyway)
This is what I have now
# comment to prevent error?
{
servers {
log_credentials
protocol {
strict_sni_host on
}
}
log {
output file /home/bot/web/caddy/logs/caddy.log
format json {
time_format unix_milli_float
duration_format seconds
}
level INFO
include http.log.access
}
}
This should be resolved by https://github.com/matthewpi/vscode-caddyfile-support/commit/ee91c9af970d6fea298cfd4bcf877413656f1714
System Information
caddy
Version: 2.5.2Describe the bug Caddyfile detects the "}" as a duplicate.
Steps to Reproduce Steps to reproduce the behavior: Create two global options that use "{" and "}" on different lines.
Expected Behavior No error should appear.
Screenshots
Additional Context Add any other context about the problem here.