[GH-ISSUE #269] Support for non-github.com domains #982

Open
opened 2026-04-19 13:35:48 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @yeahitsjan on GitHub (Apr 15, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/269

Originally assigned to: @arunavo4 on GitHub.

Hi! This tool looks promising. Currently having access to a Github Enterprise Cloud instance I would like to ask if its possible to also connect to those and mirror them accordingly? Theoretically the REST API or OctoKit should be compatible with it.

Many thanks!
Jan

Originally created by @yeahitsjan on GitHub (Apr 15, 2026). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/269 Originally assigned to: @arunavo4 on GitHub. Hi! This tool looks promising. Currently having access to a Github Enterprise Cloud instance I would like to ask if its possible to also connect to those and mirror them accordingly? Theoretically the REST API or OctoKit *should* be compatible with it. Many thanks! Jan
GiteaMirror added the question label 2026-04-19 13:35:48 -05:00
Author
Owner

@yeahitsjan commented on GitHub (Apr 15, 2026):

As I can see, it seems that GH_API_URL can be set as it is loaded from environment variables. Is that true?

8fac30fc02/src/lib/github.ts (L43)

<!-- gh-comment-id:4252316694 --> @yeahitsjan commented on GitHub (Apr 15, 2026): As I can see, it seems that `GH_API_URL` can be set as it is loaded from environment variables. Is that true? https://github.com/RayLabsHQ/gitea-mirror/blob/8fac30fc022c37fdaa1afc0d91802a2495539db2/src/lib/github.ts#L43
Author
Owner

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

Yes @yeahitsjan set GH_API_URL to your Enterprise API endpoint (e.g. https://HOSTNAME/api/v3 for GHE Server, or https://api.<tenant>.ghe.com for GHEC with data residency) and it'll route Octokit there. Standard GHEC on github.com already works out of the box.

<!-- gh-comment-id:4262497333 --> @arunavo4 commented on GitHub (Apr 16, 2026): Yes @yeahitsjan set `GH_API_URL` to your Enterprise API endpoint (e.g. `https://HOSTNAME/api/v3` for GHE Server, or `https://api.<tenant>.ghe.com` for GHEC with data residency) and it'll route Octokit there. Standard GHEC on github.com already works out of the box.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#982