Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Where is the nginx conf file located?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Where is the nginx conf file located? (Read 3704 times)
baz
Jr. Member
Posts: 52
Karma: 1
Where is the nginx conf file located?
«
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.
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Where is the nginx conf file located?
«
Reply #1 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.
Logged
baz
Jr. Member
Posts: 52
Karma: 1
Re: Where is the nginx conf file located?
«
Reply #2 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.
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Where is the nginx conf file located?
«
Reply #3 on:
January 13, 2023, 10:20:42 am »
Nice
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Where is the nginx conf file located?