Wrong URL with OAUTH

Our gitea instance runs with an iis reverse proxy on https://domain.com/gitea. With Git for Windows it wants to authenticate in the web browser. But it opens the wrong url. The requested url has the form https://domain.com/login/oauth. The gitea part is missing.

Is there a setting we missed? Or is it possible to disable the oauth in Gitea or Git?