Keycloak behind Proxy: Account console not working

So my setup so far is as follows: Using docker-compose, I have an nginx in front of keycloak. I set proxy mode to edge. also PROXY_ADDRESS_FORWARDING=true, everything behind Https. The admin console is working for the default admin account. But I can’t go to the Admin’s account console. Nor with any other user or in any other realm. The request just times out after a few seconds…

Any idea what could be wrong? I tried 17.0.0 and 17.0.1

One issue is that the account console is redirecting to the correct FQDN but to the wrong port, 8080…