Mismatched app.ini ROOT_URL after upgrade 1.26

After Upgrade to gitea 1.26 I see the following error msg:

The detected web site URL is "http://gitea.netzwissen.de", 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.

Upgrade from gitea 1.24 to 1.26.0 was the only change, there were no changes in rev. proxy configuration..

Yes, came here to post the same.

I had to reconfigure my reverse proxy to pass on the Host header and set X-Forwarded-Proto.

For Apache I now have:

    ProxyPass /git http://localhost:3000 nocanon
    <Location /git>
            ProxyPreserveHost on
            RequestHeader set X-Forwarded-Proto "https"
    </Location>

OK, thanks, in my case it was the same reason, but with another rev. proxy. The misconfiguration was in the Haproy backend config, the correct setting is:

# docker1 103 gitea
backend gitea
server 109 10.10.10.14:3020 check
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }

You can change the PUBLIC_URL_DETECTION on Configuration Cheat Sheet | Gitea Documentation