How to make discourse only reachable from two IP adresses?


#1

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?


#2

Make Nginx listen only to those two IPs.


#3

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:


#5

For everyone who needs the same feature like me

With this tutorial it will work.
https://svenv.nl/unixandlinux/dockerufw