Skip to content
Mementropy
Lab NotesHomelab notebookField note

Gitea's migration allowlist also blocked push mirrors to GitHub

One setting covers both imports and outbound mirrors.

By Ryan Hammang

I was adding GitHub push mirrors to my repos on Gitea.

The first API call failed:

HTTP 401 {"message":"Permission denied"}

That looked like a token problem, but the token was fine.

When I migrated from Forgejo, I set [migrations] ALLOWED_DOMAINS to allow my tailnet and internal names. When that setting isn’t empty, Gitea uses the same allowlist for outbound push mirrors, not only imports. github.com wasn’t on the list, so the mirror was refused.

I added github.com,*.github.com to ALLOWED_DOMAINS, rolled out the Helm upgrade, and registered and synced all 14 push mirrors.

The error message pointed at the token. Reading the code path behind it showed the allowlist.