OPNsense Forum

English Forums => General Discussion => Topic started by: yordanov.alexandar on March 17, 2023, 03:19:07 PM

Title: Nginx headers more
Post by: yordanov.alexandar on March 17, 2023, 03:19:07 PM
Hi
I am new to OPNSense.
I have configured nginx as a reverse proxy for a few local services (started from docker containers).
I would like to modify(clear and add) some headers for some of these services.
From my searches so far it seems that I can do this with the Headers More module for nginx. I have enabled it in the Opnsense plugin (Global HTTP settings) however I can't seem to find any way to use it. Are there GUI options for this module? If not how can I use it?
Thank you
Title: Re: Nginx headers more
Post by: Fright on March 18, 2023, 08:16:37 AM
Hi
QuoteAre there GUI options for this module?
not yet. disable\enable only so far
QuoteIf not how can I use it?
via Location hooks
(like https://forum.opnsense.org/index.php?topic=27050.msg131201#msg131201)
Title: Re: Nginx headers more
Post by: yordanov.alexandar on March 23, 2023, 07:24:39 AM
Thank you that worked :)
After some experimentation It turned out that Nginx security headers already does what I needed, but nevertheless it's good knowing how to do this