mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-22 07:31:36 -05:00
[PR #183] [MERGED] Add optional external Gitea URL for UI links #2860
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:codex/issue-154-external-gitea-url📝 Commits (1)
ef13fefAdd 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
externalUrlin Gitea config for browser-facing linksGITEA_URL(no behavior change to sync path)externalUrl(fallback tourl) when generating Gitea links in repository and organization viewsGITEA_EXTERNAL_URL.env.exampleand environment docsWhy
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 buildFixes #154
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.