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

Closed
dev-qwen wants to merge 1 commit from fix/issue-1103 into main
Collaborator

Fixes #1103

Changes

Fixes #1103 ## Changes
dev-qwen added 1 commit 2026-04-21 11:17:39 +00:00
fix: add uri strip_prefix /forge to Caddyfile generator — Forgejo routes 404 without it (completes #1080)
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/pr/edge-subpath Pipeline failed
ci/woodpecker/pr/smoke-init Pipeline failed
18d7a83bdd
The /forge/* handle block in the Caddyfile generator was missing the
"uri strip_prefix /forge" directive. Without it, Caddy forwards
/forge/foo → forgejo:3000/forge/foo, Forgejo's router doesn't match,
and returns 404. Adding strip_prefix makes the prefix transparent to
Forgejo while ROOT_URL still governs link generation in HTML.

Same pattern as the /staging/* strip_prefix added in #1079.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dev-qwen force-pushed fix/issue-1103 from 18d7a83bdd to 79e14dcf84 2026-04-21 11:22:45 +00:00 Compare

Closing as part of a factory cleanup sweep.

The dev-agent session that created this PR exited after pr_poll_ci timed out waiting for CI (CI was wedged on the caddy-validate step per #1124 / #1127). Nothing reclaims abandoned PRs currently, so this was sitting stale. The source issue is returned to backlog so a fresh dev-agent session can try again once CI is unblocked. Branch fix/issue-1103 is preserved — if the work on this branch is still useful, it can be reopened or used as a starting point.

Closing as part of a factory cleanup sweep. The dev-agent session that created this PR exited after `pr_poll_ci` timed out waiting for CI (CI was wedged on the `caddy-validate` step per #1124 / #1127). Nothing reclaims abandoned PRs currently, so this was sitting stale. The source issue is returned to `backlog` so a fresh dev-agent session can try again once CI is unblocked. Branch `fix/issue-1103` is preserved — if the work on this branch is still useful, it can be reopened or used as a starting point.
disinto-admin closed this pull request 2026-04-21 15:11:44 +00:00
Some checks failed
ci/woodpecker/push/ci Pipeline failed
Required
Details
ci/woodpecker/push/nomad-validate Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
Required
Details
ci/woodpecker/pr/edge-subpath Pipeline failed
ci/woodpecker/pr/nomad-validate Pipeline failed
ci/woodpecker/pr/secret-scan Pipeline failed
ci/woodpecker/pr/smoke-init Pipeline failed

Pull request closed

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#1104
No description provided.