Optimal nginx configuration for Nextcloud

Started by psychofaktory, December 14, 2023, 10:55:12 AM

Previous topic - Next topic
Hello,

the official Nextcloud documentation provides extensive recommendations for the correct configuration of the upstream nginx.

Unfortunately, I find it difficult to transfer the configuration from the example to the nginx configuration of the OPNsense, as the configuration there has a completely different structure.

Can someone here help me to create the optimal configuration under OPNsense according to the Nextcloud documentation?

Hi
suggested config is for NC on the same host with nginx (/var/www/nextcloud)

Quote from: Fright on December 14, 2023, 04:05:13 PM
suggested config is for NC on the same host with nginx (/var/www/nextcloud)

Hi,
Unfortunately, this is not practicable with the Docker installation of Nextcloud.

yep.
so i think you don't need to try to mimic the config mentioned.
you can just start with the 'regular' config in OPN gui and test.
then adapt it if needed

Ok, thanks for the feedback.

With the "regular" configuration and a few adjustments, Nextcloud is running and I have not been able to detect any errors so far.
I was also able to get an A+ ranking in the Nextcloud security scan and at securityheaders.com.

I just wanted to make sure that the web server is optimally configured.