We are required to install a Signal Sciences OS agent and a web server module to out Discourse server.
So, our approach is to install both the agent and the nginx module in the discourse container.
We have seen that NGINX is compiled with the brotli module. We dont have Signal Sciences sources. So we managed to add both modules by compiling dynamic modules and loading them in nginx config file.
As you can see, i think this is getting nasty and we want to avoid breaking things. Currently, we are thinking what would be the best approach to integrate these changes:
- Creating another docker image?
- Running scripts through a template?
Has anybody tried to add a nginx module before?
Any advice is very welcome (even those saying im totally wrong), thanks!