bug: Caddyfile in edge.hcl has invalid header_up at handle-block top level — Caddy rejects config #1117
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Edge alloc reaches template-render stage but caddy task crashes immediately with:
Root cause
nomad/jobs/edge.hclCaddyfile template around lines 155-165 (in the/chat/wshandler):header_upis a sub-directive ofreverse_proxy, not a valid directive at thehandleblock top level. Caddy's Caddyfile parser rejects the file, and the entire edge proxy fails to start.Same pattern likely valid in prior Caddy versions (header_up was accepted at matcher level in older Caddy 2.x), but the edge image uses
caddy:latestwhich resolves to current major — strictly no.Reproduction
Fresh box, latest main, after patching bugs #<bug1/2/3>:
Fix
Wrap
header_updirectives inside thereverse_proxyblock:(Also note:
$http.upgradeis wrong syntax — Caddy placeholder is{http.request.header.Upgrade}.)Acceptance
caddy validatepasses for the rendered Caddyfilerunningwith caddy listening on :80 and :443curl http://<edge-ip>/forge/api/v1/versionreturns Forgejo versionheader_upat handle-block top level — Caddy rejects config (#1117) #1125Blocked — issue #1117
ci_timeout2026-04-21T14:35:34Zheader_upat handle-block top level — Caddy rejects config (#1117) #1142