[PR #257] [MERGED] feat: support reverse proxy path prefix deployments #1110

Closed
opened 2026-04-19 13:40:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/257
Author: @arunavo4
Created: 4/2/2026
Status: Merged
Merged: 4/9/2026
Merged by: @arunavo4

Base: mainHead: codex/issue-256-base-url


📝 Commits (3)

  • 96e4653 feat: support reverse proxy path prefixes
  • 7d6bbe9 fix: respect BASE_URL in SAML callback fallback
  • 6f51e6a fix: make BASE_URL runtime configurable

📊 Changes

58 files changed (+552 additions, -114 deletions)

View changed files

📝 .env.example (+8 -0)
📝 Dockerfile (+4 -1)
📝 README.md (+13 -1)
📝 docker-compose.alt.yml (+7 -1)
📝 docker-compose.dev.yml (+6 -1)
📝 docker-compose.yml (+11 -1)
📝 docker-entrypoint.sh (+7 -1)
📝 docs/ENVIRONMENT_VARIABLES.md (+17 -0)
📝 package.json (+2 -2)
scripts/runtime-server.ts (+76 -0)
📝 src/components/NotFound.tsx (+6 -5)
📝 src/components/activity/ActivityLog.tsx (+2 -1)
📝 src/components/auth/LoginForm.tsx (+8 -4)
📝 src/components/auth/SignupForm.tsx (+3 -2)
📝 src/components/config/ConfigTabs.tsx (+10 -7)
📝 src/components/config/NotificationSettings.tsx (+2 -1)
📝 src/components/config/SSOSettings.tsx (+10 -6)
📝 src/components/dashboard/Dashboard.tsx (+2 -1)
📝 src/components/dashboard/RecentActivity.tsx (+3 -2)
📝 src/components/dashboard/RepositoryList.tsx (+3 -2)

...and 38 more files

📄 Description

Summary

  • add BASE_URL-aware path helpers and Astro base normalization
  • make auth basePath, redirects, and OIDC pages respect BASE_URL
  • update internal links, API calls, and SSE/EventSource URLs to be base-path aware
  • document BASE_URL and wire Docker build/runtime/healthchecks for prefix deployments

Testing

  • bun test
  • bun run build

Closes #256


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/257 **Author:** [@arunavo4](https://github.com/arunavo4) **Created:** 4/2/2026 **Status:** ✅ Merged **Merged:** 4/9/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `codex/issue-256-base-url` --- ### 📝 Commits (3) - [`96e4653`](https://github.com/RayLabsHQ/gitea-mirror/commit/96e4653cdabd82ad945e2e88c52078dc6005db26) feat: support reverse proxy path prefixes - [`7d6bbe9`](https://github.com/RayLabsHQ/gitea-mirror/commit/7d6bbe908f34e7767c48e3e2a18b632ea4232d91) fix: respect BASE_URL in SAML callback fallback - [`6f51e6a`](https://github.com/RayLabsHQ/gitea-mirror/commit/6f51e6af50d17f3b3465325e0b26816c3d34f0ca) fix: make BASE_URL runtime configurable ### 📊 Changes **58 files changed** (+552 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+8 -0) 📝 `Dockerfile` (+4 -1) 📝 `README.md` (+13 -1) 📝 `docker-compose.alt.yml` (+7 -1) 📝 `docker-compose.dev.yml` (+6 -1) 📝 `docker-compose.yml` (+11 -1) 📝 `docker-entrypoint.sh` (+7 -1) 📝 `docs/ENVIRONMENT_VARIABLES.md` (+17 -0) 📝 `package.json` (+2 -2) ➕ `scripts/runtime-server.ts` (+76 -0) 📝 `src/components/NotFound.tsx` (+6 -5) 📝 `src/components/activity/ActivityLog.tsx` (+2 -1) 📝 `src/components/auth/LoginForm.tsx` (+8 -4) 📝 `src/components/auth/SignupForm.tsx` (+3 -2) 📝 `src/components/config/ConfigTabs.tsx` (+10 -7) 📝 `src/components/config/NotificationSettings.tsx` (+2 -1) 📝 `src/components/config/SSOSettings.tsx` (+10 -6) 📝 `src/components/dashboard/Dashboard.tsx` (+2 -1) 📝 `src/components/dashboard/RecentActivity.tsx` (+3 -2) 📝 `src/components/dashboard/RepositoryList.tsx` (+3 -2) _...and 38 more files_ </details> ### 📄 Description ## Summary - add BASE_URL-aware path helpers and Astro base normalization - make auth basePath, redirects, and OIDC pages respect BASE_URL - update internal links, API calls, and SSE/EventSource URLs to be base-path aware - document BASE_URL and wire Docker build/runtime/healthchecks for prefix deployments ## Testing - bun test - bun run build Closes #256 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 13:40:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#1110