As I remember, it was not a problem with the nginx server, it was something with the settings in moodle.
Moodle office tool integrations
OAuth Nginx
This discussion has been locked so you can no longer reply to it.