Cannot use properly Nextcloud integrations - installations with NGINX

Re: Cannot use properly Nextcloud integrations - installations with NGINX

by Jan Dageförde -
Number of replies: 2

Let's Encrypt should be fine. The fact that Moodle and Nextcloud are on the same server should not be an issue either. Unless, maybe, this results in different hostnames (for example, maybe the public hostname of your server cannot be resolved locally - that would be an issue, because after authorisation Moodle talks to Nextcloud directly using that hostname).

in my experience, the issues with misconfigured WebDAV + headers are hard to notice, i.e. everything appears totally fine except for a few very special requests that fail without a helpful error message. For example, I have no idea whether the rather special combination of Nextcloud's OAuth + WebDAV + nginx works, and whether those behind that documentation have even tried it. (For example, on misconfigured Apaches, the OAuth authentication header is just dropped without notice - but everything else is fine.)

If you double-checked the configuration and it doesn't work yet, you could try two things. You could ask the Nextcloud community for help on their forums. Maybe they have experience with nginx + OAuth that they are willing to share. Alternatively, try setting up your Nextcloud on an Apache following the official documentation; then try connecting to that.

Good luck, hope this helps! smile

In reply to Jan Dageförde

Re: Cannot use properly Nextcloud integrations - installations with NGINX

by Rodrigo Borges -

I've double-checked the nginx configuration, did some minor tweaks, but it still does not work.


I'll try to reach the nextcloud forum, then.


Thanks again.

In reply to Rodrigo Borges

Re: Cannot use properly Nextcloud integrations - installations with NGINX

by Thorsten Rochelmeyer -

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.


Average of ratings: Useful (1)