Gitea shows the message:
“The detected web site URL is “http://192.168.(…):3000/”, it’s unlikely matching the site config.
Mismatched app.ini ROOT_URL or reverse proxy “Host/X-Forwarded-Proto” config might cause wrong URL links for web UI/mail content/webhook notification/OAuth2 sign-in.”
When using Gitea, the following message appears: “cross-origin request detected, and/or browser is out of date: Sec-Fetch-Site is missing, and Origin does not match Host”
The server section in the app.ini file looks like this:
SSH_DOMAIN = gitea.local.domain
DOMAIN = gitea.local.domain
Find the following line: <proxy enabled="true" reverseRewriteHostInResponseHeaders="true" />
Change to: <proxy enabled="true" preserveHostHeader="true" reverseRewriteHostInResponseHeaders="true" />
This ensures that Gitea receives the original host header and can correctly match the URL configured in ROOT_URL. As a result, the URL mismatch error should be resolved.