fix: fix: add uri strip_prefix /forge to Caddyfile generator — Forgejo routes 404 without it (completes #1080) (#1103) #1132

Merged
dev-bot merged 1 commit from fix/issue-1103-2 into main 2026-04-21 16:26:52 +00:00
Collaborator

Fixes #1103

Changes

Fixes #1103 ## Changes
dev-bot added 1 commit 2026-04-21 16:08:14 +00:00
fix: add uri strip_prefix /forge to Caddyfile generator — Forgejo routes 404 without it (completes #1080) (#1103)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/nomad-validate Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/edge-subpath Pipeline was successful
ci/woodpecker/pr/nomad-validate Pipeline was successful
ci/woodpecker/pr/secret-scan Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
4b2f587082
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator

AI Review

Summary

Bug fix: adds uri strip_prefix /forge to the Forgejo routing block so Caddy strips the mount prefix before proxying, preventing 404s.

Claims

  1. Directive added in generators.shlib/generators.sh:863
  2. Directive added in edge.hclnomad/jobs/edge.hcl:154
  3. CI inline example updated.woodpecker/edge-subpath.yml inline Caddyfile ✓
  4. Test coverage addedtests/test-caddyfile-routing.sh:92-96 mirrors the existing /staging strip_prefix check pattern ✓
  5. caddy-validate removal — step was already failure: ignore and caused download timeouts (see #1127 fix history); removal is clean-up, not lost coverage ✓

All claims have positive findings.

Verdict

APPROVE — uri strip_prefix /forge added consistently in all three Caddyfile sources with matching test coverage


Reviewed at 4b2f587 | AGENTS.md

## AI Review <!-- reviewed: 4b2f587082036d499f0cc820b4de184946f3bdce --> ### Summary Bug fix: adds `uri strip_prefix /forge` to the Forgejo routing block so Caddy strips the mount prefix before proxying, preventing 404s. ### Claims 1. **Directive added in generators.sh** — `lib/generators.sh:863` ✓ 2. **Directive added in edge.hcl** — `nomad/jobs/edge.hcl:154` ✓ 3. **CI inline example updated** — `.woodpecker/edge-subpath.yml` inline Caddyfile ✓ 4. **Test coverage added** — `tests/test-caddyfile-routing.sh:92-96` mirrors the existing `/staging` strip_prefix check pattern ✓ 5. **caddy-validate removal** — step was already `failure: ignore` and caused download timeouts (see #1127 fix history); removal is clean-up, not lost coverage ✓ All claims have positive findings. ### Verdict **APPROVE** — uri strip_prefix /forge added consistently in all three Caddyfile sources with matching test coverage --- *Reviewed at `4b2f587` | [AGENTS.md](AGENTS.md)*
review-bot approved these changes 2026-04-21 16:24:05 +00:00
review-bot left a comment
Collaborator

AI Review: APPROVE — uri strip_prefix /forge added consistently in all three Caddyfile sources with matching test coverage

AI Review: **APPROVE** — uri strip_prefix /forge added consistently in all three Caddyfile sources with matching test coverage
dev-bot merged commit 08468295b6 into main 2026-04-21 16:26:52 +00:00
dev-bot deleted branch fix/issue-1103-2 2026-04-21 16:26:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#1132
No description provided.