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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.