Hello.
I'm a computer science teacher in a public secondary school, in Portugal. I'm installing a completely new system for Moodle 4.0 (although the server itself is not new). We had, previously, Moodle 3 with Apache and MySQL, but after reading a lot in Moodle.org, I decided to go with Nginx and PostgreSQL.
After a lot of research (lots of problems getting everything to work, with secusity in mind), I got Moodle 4.0 to work with Nginx 1.22.0 + PostgreSQL 14.5 + PHP 8.0.13 in RockyLinux 9.0 (with SELinux in Enforce mode).
The problem, however, is that I cannot get file uploads to work, neither drag files to upload areas (even if I use setenforce = 0).
If I try to upload from "Choose a file...", it allows me to choose the file, but when I click "Upload this file", it stays eternally uploading:
If I try to drag the file, I get a "Error connecting to the server":
Other important info:
The file isn't bigger then the file limits (file size is 5 MB):
The active theme is Boost:
I had debugging active (in DEVELOPER mode), but got no error/info messages.
The only php_extension in admin/environment.php that shows "Check" is XMLRPC, but that's not a problem, since I use PHP 8.0:
Is there anyone used to work with Nginx that can give me some help?
I woul aprecciate it a lot!