Where is the nginx conf file located?

Started by baz, January 12, 2023, 03:34:13 PM

Previous topic - Next topic
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.

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.

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.