Support for multiple host name with Oauth

Hello, I’m trying to configure grafana to use two different names with OAuth

Say I need to have and
I use Helm chart
I can define multiple hosts under ingress - OK

For Auth to work we use init-container which is effectively takes care to write down grafana.ini file, including definition of the root_url. Say if it’s configured to use, everything works just fine, but I I use grafana2: it will redirect me to grafana1, after successful authentiation and give an error.

To me it sounds like redirect URL shall be passed to OAuth service based on the request originator, not a hardcoded value.
Is there a way I can configure grafana to support multiple names, but all with OAuth / oidc ?