Mastodon login broken when LOCAL_DOMAIN is not WEB_DOMAIN
I'm new to this all so not sure if this is a bug or a misconfiguration on my end. I setup Mastodon with a different domain for the WEB_DOMAIN. The following are the requests when I try to add an account on 'grml.de'. It seems to find the rewrite to the WEB_DOMAIN, gets the nodeinfo from that but then it returns to the LOCAL_DOMAIN for login.
Everything works if I start with 'mastodon.grml.de' but then the id is '@robin@mastodon.grml.de' where it should be '@robin@grml.de'.
==> /var/log/nginx/access.log <==
90.187.11.69 - - [11/Jan/2021:11:53:13 +0100] "POST /api/v1/apps HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
90.187.11.69 - - [11/Jan/2021:11:53:13 +0100] "GET /login HTTP/1.1" 200 5602 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
90.187.11.69 - - [11/Jan/2021:11:53:14 +0100] "GET /.well-known/nodeinfo HTTP/1.1" 301 185 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
==> /var/log/nginx/access_mastodon.log <==
90.187.11.69 - - [11/Jan/2021:11:53:14 +0100] "GET /.well-known/nodeinfo HTTP/1.1" 200 131 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
90.187.11.69 - - [11/Jan/2021:11:53:14 +0100] "GET /nodeinfo/2.0 HTTP/1.1" 200 180 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
==> /var/log/nginx/access.log <==
90.187.11.69 - - [11/Jan/2021:11:53:14 +0100] "POST /api/v1/apps HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
90.187.11.69 - - [11/Jan/2021:11:53:14 +0100] "GET /login HTTP/1.1" 200 5606 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
https://mastodon.grml.de/.well-known/nodeinfo
{"links":[{"rel":"http://nodeinfo.diaspora.software/ns/schema/2.0","href":"https://mastodon.grml.de/nodeinfo/2.0"}]}
https://mastodon.grml.de/nodeinfo/2.0
{"version":"2.0","software":{"name":"mastodon","version":"3.3.0"},"protocols":["activitypub"],"usage":{"users":{"total":1,"activeMonth":1,"activeHalfyear":1},"localPosts":0},"openRegistrations":false}
Mastodon Settings LOCAL_DOMAIN=grml.de WEB_DOMAIN=mastodon.grml.de