# NGINX module advice

**URL:** https://meta.discourse.org/t/nginx-module-advice/112848
**Category:** Self-hosting
**Created:** [March 28, 2019, 6:21pm UTC](https://meta.discourse.org/t/nginx-module-advice/112848 "2019-03-28T18:21:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jose-zama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jose-zama/32/131701_2.png) [@jose-zama](https://meta.discourse.org/u/jose-zama)
#### Post date: [March 28, 2019, 6:21pm UTC](https://meta.discourse.org/t/nginx-module-advice/112848/1 "2019-03-28T18:21:19Z")

</div>

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](https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus) 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:

1. Creating another docker image?
2. 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!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 28, 2019, 7:01pm UTC](https://meta.discourse.org/t/nginx-module-advice/112848/2 "2019-03-28T19:01:16Z")

</div>

Can’t you run another nginx in the host with those modules?

---

<div class="post-metadata">

### Author: ![jose-zama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jose-zama/32/131701_2.png) [@jose-zama](https://meta.discourse.org/u/jose-zama)
#### Post date: [March 28, 2019, 8:01pm UTC](https://meta.discourse.org/t/nginx-module-advice/112848/3 "2019-03-28T20:01:37Z")

</div>

Actually, that was our first idea. I’m not sure why we dropped this. I’ll check.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 27, 2019, 8:01pm UTC](https://meta.discourse.org/t/nginx-module-advice/112848/4 "2019-04-27T20:01:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
