Discourse in Docker + NGINX reverse proxy + SSL everywhere + OAuth2 Custom

Have you managed to solve this? I’m in (almost) exactly the same boat. What I’ve noticed is that the request to my user_json_url (website.com/oauth/me?access_token=:token) returns 400 on the Discourse backend, causing a 500 on there.