fix: [nomad-step-5] S5-fix-7 — staging port 80 collides with edge; staging should use dynamic port (#1018) #1019
No reviewers
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#1019
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-1018"
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?
Fixes #1018
Changes
AI Review
Review: S5-fix-7 — staging dynamic port + Nomad-rendered Caddyfile
Claims verified before reading diff:
static = 80→ dynamic host port, no collision with edge. ✓nomadService "staging"→ matchesservice { name = "staging" }in staging.hcl exactly. ✓caddy run→ line 240 copy, line 246 caddy run. ✓{{ range }}/{{ end }}whitespace produces validreverse_proxy ADDR:PORTinside the handle block. ✓All four correctness claims hold. The fix is complete and minimal.
Notes (non-blocking)
docker/edge/entrypoint-edge.sh:238: Comment says "compose uses the mounted path" but compose has no Caddyfile mount — it falls through to Caddy's default image config. Functionally correct (theif [ -f /local/Caddyfile ]branch is correctly skipped in compose), but the comment is misleading. Low priority.nomad/jobs/edge.hcl:135-136: The template hardcodesforgejo:3000,woodpecker:8000, andchat:8080as Docker container-name hostnames. These will only resolve if the Nomad-scheduled edge container shares a Docker network with those compose services. Pre-existing architectural concern not introduced by this PR.Verdict
APPROVE — Staging port collision fixed correctly: static=80 removed, template uses nomadService "staging" matching the registered service name, entrypoint copy lands before caddy run, and rendered Caddyfile syntax is valid.
Reviewed at
e6dcad1| AGENTS.mdAI Review: APPROVE — Staging port collision fixed correctly: static=80 removed, template uses nomadService "staging" matching the registered service name, entrypoint copy lands before caddy run, and rendered Caddyfile syntax is valid.