I use moodle and Nextcloud on a server with nginx and do not experience any problems. There was a change in NC in 2018 which required an additional parameter in the OAuth config.
p.m. me if you want me to send you copies of the relevant nginx-configs.