Need help with #Caddy configuration. Getting error:
“Error: adapting config using caddyfile: /etc/caddy/Caddyfile:20: parsed ‘header’ as a site address, but it is a known directive; directives must appear in a site block”
Running #LinkAce behind Caddy. Config has global options block, site blocks for subdomains, and snippets for common configs. Error persists despite:
- Proper indentation
- Blank lines between blocks
- Snippets after global block
- Valid header directives
Full config: https://privatebin.io/?e2b50660d40b8463#Awoq9mqdg5nyNB25xvd1zB8L7mX5m9e9sZJDguegJL2G
Password: bka@zhj@btc4FPR!emr
#SelfHosted #Docker #ReverseProxy #WebDev #Linux #HomeLab
@selfhost @selfhosted @selfhosting
@RareBird15 @selfhost @selfhosted @selfhosting I wonder if it was a bug introduced in https://github.com/caddyserver/caddy/issues/6095? That’s a year ago, though; I would think someone would have noticed.
@RareBird15 @selfhost @selfhosted @selfhosting Actually, I think it’s in the bookmarks.laniecarmelo.tech block.
If I comment that out, then the file validates.
@offby1 @selfhost @selfhosted @selfhosting Hmm, I suspected it might be that block. Not sure how to fix it though.