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
Aquest fil de debat ha finalitzat, així que no admet respostes.