this post was submitted on 24 Feb 2025
6 points (75.0% liked)

Self Hosted - Self-hosting your services.

12490 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

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

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 3 weeks ago (1 children)

@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.

[–] [email protected] 1 points 3 weeks ago (1 children)

@RareBird15 @selfhost @selfhosted @selfhosting Actually, I think it's in the bookmarks.laniecarmelo.tech block.

If I comment that out, then the file validates.

[–] [email protected] 1 points 3 weeks ago

@offby1 @selfhost @selfhosted @selfhosting Hmm, I suspected it might be that block. Not sure how to fix it though.