How to make discourse only reachable from two IP adresses?


Hi Folks,

i try to make my discourse instance only reachable from two different IP adresses.
First i was thinking that should be possible with ufw (im on ubuntu). But the rules take no effect.

Does anyone know how i can do that?


Make Nginx listen only to those two IPs.


Thanks a lot for that fast reply.

Im new on this, how can i connect to the nginx config?

(Felix Freiberger) #4

You can either amend app.yml to modify the configuration of the nginx running in the container (look at some templates for examples), or proxy Discourse behind an “outer” nginx" and configure that :slight_smile:


For everyone who needs the same feature like me

With this tutorial it will work.