OPNsense Forum

English Forums => General Discussion => Topic started by: michaelgo on October 07, 2021, 11:10:13 AM

Title: nginx custom includes
Post by: michaelgo on October 07, 2021, 11:10:13 AM
since there's a lot of internal stuff in nginx.conf (if you create number of servers) - what's the best way to put custom includes ? and where to put them?
even better without GUI
thanks
Title: Re: nginx custom includes
Post by: franco on October 07, 2021, 01:21:31 PM
You can always handroll nginx by not using the plugin and write the configuration by hand.


Cheers,
Franco
Title: Re: nginx custom includes
Post by: fabian on October 07, 2021, 06:01:28 PM
There are some file includes you can use. But they work by copying the fragment into a special place in the file system.
Title: Re: nginx custom includes
Post by: Fright on October 08, 2021, 08:37:52 AM
you can look for the "include" directives in different parts of the /usr/local/etc/nginx.conf