OPNsense Forum

English Forums => General Discussion => Topic started by: baz on January 12, 2023, 03:34:13 PM

Title: Where is the nginx conf file located?
Post by: baz on January 12, 2023, 03:34:13 PM
I am having trouble setting up a separate service on my NAS that relies on the nginx configuration of OPNSense. Specifically this Seafile integration: https://manual.seafile.com/deploy/deploy_with_nginx/

I understand the conf file gets overwritten by OPNSense but I would like to be able to see it so as to compare it to the documentation.

Where can I find the conf file that gets generated by the OPNSense UI?

Thanks.
Title: Re: Where is the nginx conf file located?
Post by: cookiemonster on January 12, 2023, 10:49:38 PM
If you are using the plugin, then look in /usr/local/etc/nginx/nginx.conf instead of /usr/local/opnsense/service/templates/OPNsense/Nginx/nginx.conf .
I _think_ your modifications need to go on the former location for confs to be read in by the nginx.conf by some includes.
Please wait for confirmation from someone knowledgeable how to make changes so they persist updates/upgrades to this plugin.
Title: Re: Where is the nginx conf file located?
Post by: baz on January 12, 2023, 11:47:33 PM
This `/usr/local/etc/nginx/nginx.conf` is exactly what I was looking for, thank you much. I don't even need to edit it, I just want to see what the UI is creating.
Title: Re: Where is the nginx conf file located?
Post by: cookiemonster on January 13, 2023, 10:20:42 AM
Nice