[PR #183] [MERGED] Add optional external Gitea URL for UI links #173

Closed
opened 2026-02-27 15:55:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: codex/issue-154-external-gitea-url


📝 Commits (1)

  • ef13fef Add optional external Gitea URL for UI links

📊 Changes

11 files changed (+45 additions, -8 deletions)

View changed files

📝 .env.example (+1 -0)
📝 docs/ENVIRONMENT_VARIABLES.md (+1 -0)
📝 src/components/config/ConfigTabs.tsx (+1 -0)
📝 src/components/config/GiteaConfigForm.tsx (+21 -0)
📝 src/components/dashboard/RepositoryList.tsx (+5 -4)
📝 src/components/organizations/OrganizationsList.tsx (+5 -4)
📝 src/lib/db/schema.ts (+1 -0)
📝 src/lib/env-config-loader.ts (+3 -0)
📝 src/lib/utils/config-defaults.ts (+4 -0)
📝 src/lib/utils/config-mapper.ts (+2 -0)
📝 src/types/config.ts (+1 -0)

📄 Description

Summary

  • add optional externalUrl in Gitea config for browser-facing links
  • keep mirroring/API traffic on existing GITEA_URL (no behavior change to sync path)
  • use externalUrl (fallback to url) when generating Gitea links in repository and organization views
  • expose field in Configuration UI and support env var GITEA_EXTERNAL_URL
  • document the new env variable in .env.example and environment docs

Why

Fixes #154. This supports setups where Gitea Mirror can reach Gitea via an internal Docker/network URL, while users need clickable UI links to a different external/reverse-proxy URL.

Validation

  • bun run build

Fixes #154


🔄 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/183 **Author:** [@arunavo4](https://github.com/arunavo4) **Created:** 2/24/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `codex/issue-154-external-gitea-url` --- ### 📝 Commits (1) - [`ef13fef`](https://github.com/RayLabsHQ/gitea-mirror/commit/ef13fefb697243a0d0fad94fc6307d6df51bcfb9) Add optional external Gitea URL for UI links ### 📊 Changes **11 files changed** (+45 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+1 -0) 📝 `docs/ENVIRONMENT_VARIABLES.md` (+1 -0) 📝 `src/components/config/ConfigTabs.tsx` (+1 -0) 📝 `src/components/config/GiteaConfigForm.tsx` (+21 -0) 📝 `src/components/dashboard/RepositoryList.tsx` (+5 -4) 📝 `src/components/organizations/OrganizationsList.tsx` (+5 -4) 📝 `src/lib/db/schema.ts` (+1 -0) 📝 `src/lib/env-config-loader.ts` (+3 -0) 📝 `src/lib/utils/config-defaults.ts` (+4 -0) 📝 `src/lib/utils/config-mapper.ts` (+2 -0) 📝 `src/types/config.ts` (+1 -0) </details> ### 📄 Description ## Summary - add optional `externalUrl` in Gitea config for browser-facing links - keep mirroring/API traffic on existing `GITEA_URL` (no behavior change to sync path) - use `externalUrl` (fallback to `url`) when generating Gitea links in repository and organization views - expose field in Configuration UI and support env var `GITEA_EXTERNAL_URL` - document the new env variable in `.env.example` and environment docs ## Why Fixes #154. This supports setups where Gitea Mirror can reach Gitea via an internal Docker/network URL, while users need clickable UI links to a different external/reverse-proxy URL. ## Validation - `bun run build` Fixes #154 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:55:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/gitea-mirror#173
No description provided.