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
<!-- 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
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.
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.
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
@yeahitsjan commented on GitHub (Apr 15, 2026):
As I can see, it seems that
GH_API_URLcan 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
@arunavo4 commented on GitHub (Apr 16, 2026):
Yes @yeahitsjan set
GH_API_URLto your Enterprise API endpoint (e.g.https://HOSTNAME/api/v3for GHE Server, orhttps://api.<tenant>.ghe.comfor GHEC with data residency) and it'll route Octokit there. Standard GHEC on github.com already works out of the box.