OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: psychofaktory on December 14, 2023, 10:55:12 AM

Title: Optimal nginx configuration for Nextcloud
Post by: psychofaktory on December 14, 2023, 10:55:12 AM
Hello,

the official Nextcloud documentation provides extensive recommendations for the correct configuration of the upstream nginx (https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html#nextcloud-in-the-webroot-of-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?
Title: Re: Optimal nginx configuration for Nextcloud
Post by: Fright on December 14, 2023, 04:05:13 PM
Hi
suggested config is for NC on the same host with nginx (/var/www/nextcloud)
Title: Re: Optimal nginx configuration for Nextcloud
Post by: psychofaktory on December 14, 2023, 04:07:28 PM
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.
Title: Re: Optimal nginx configuration for Nextcloud
Post by: Fright on December 14, 2023, 04:12:48 PM
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
Title: Re: Optimal nginx configuration for Nextcloud
Post by: psychofaktory on December 15, 2023, 10:08:46 AM
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.