I’ve been running the same instance of Gitea for a long while with no problems. Recently I upgraded my 1.26 to 28.0 and then 28.1 in quick succession. Now suddenly the handful of Github repos I mirror locally are getting errors when trying to sync. The logs show entries like:
2026/10/17 00:07:04 .../mirror/mirror_pull.go:118:runSync() [E] SyncMirrors [repo: <Repository 99:github/Yaesu_Web_Control>]: remote URL is not allowed: migration/cloning from '``github.com``' is not allowed.
All of my mirror repos are via regular https. If I go into a repo’s settings and simply try to update any of the “Mirror Settings”, I get:
You cannot import from disallowed hosts. Please ask the admin to check the ALLOWED_HOST_LIST/BLOCKED_HOST_LIST settings in the [migrations] section.
Okay, but I’ve tried numerous variations of my app.ini trying to get “github.com” allowed (with and without wildcards, port numbers, other settings, etc). I’m just running the Gitea binary on a Linux server directly, and there’s nothing funky about my home LAN setup.
The seemingly pertinent parts of the current app.ini:
[security]
INSTALL_LOCK = true
INTERNAL_TOKEN = (redacted)
PASSWORD_HASH_ALGO = pbkdf2
;;;; Attempting various combinations of:
;;ALLOWED_HOST_LIST = 192.168.199.0/24:, github.com:, .github.com:
;;ALLOWED_HOST_LIST = github.com, 192.168.199.0/24:, github.com:, .github.com:, loopback:, private:
ALLOWED_HOST_LIST=github.com
;;BLOCKED_HOST_LIST=
ALLOWED_DOMAINS=*
BLOCKED_DOMAINS=
;;;; Tried various combinations of 'lax' and 'strict':
EGRESS_MODE = lax
DISABLE_WEBHOOKS = false
DISABLE_GIT_HOOKS = false
REVERSE_PROXY_LIMIT = 1
REVERSE_PROXY_TRUSTED_PROXIES = *
;; I'm not running a proxy:
[proxy]
PROXY_ENABLED = false
[migrations]
;;;; Trying various combinations of 'lax' and 'strict':
EGRESS_MODE = lax
;;;; Attempting various combinations of:
;;ALLOWED_HOST_LIST = github.com, 192.168.199.0/24:, github.com:, .github.com:, loopback:, private:
;;ALLOWED_HOST_LIST = github.com
ALLOWED_HOST_LIST=github.com,github.com:*
BLOCKED_HOST_LIST=foobarbaz.com
[mirror]
ENABLED = true
My only other thought is maybe there’s another setting I might have missed to add earlier, as this Gitea instance has been running since maybe 1.15 or so and might have missed getting another setting added to app.ini. I’ve poked around the Go source but nothing is jumping out at me as far as the cause.
Any ideas?