[GH-ISSUE #256] Add support for reverse proxy path prefixes. #974

Closed
opened 2026-04-19 13:35:24 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @morgan55555 on GitHub (Mar 31, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/256

Now all the paths is started with "/" (absolute paths), so it's too hard to make working path prefix like 'git.myhost.com/mirror'.
One solution is adding BASE_URL environment variable for changing app base path.
Alternative solution is to making all URLs relative, like './path'.

Originally created by @morgan55555 on GitHub (Mar 31, 2026). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/256 Now all the paths is started with "/" (absolute paths), so it's too hard to make working path prefix like 'git.myhost.com/mirror'. One solution is adding BASE_URL environment variable for changing app base path. Alternative solution is to making all URLs relative, like './path'.
Author
Owner

@arunavo4 commented on GitHub (Apr 2, 2026):

@morgan55555 give this PR a try ghcr.io/raylabshq/gitea-mirror:pr-257

<!-- gh-comment-id:4174311508 --> @arunavo4 commented on GitHub (Apr 2, 2026): @morgan55555 give this PR a try `ghcr.io/raylabshq/gitea-mirror:pr-257`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#974