Restrict Discourse to IP range

(Raphael Haase) #1

We want to try out Discourse by deploying it on Azure, but restricting access to certain IP ranges, i.e. so that only HTTP requests coming from a certain IP range are answered by Discourse, whereas others only get a 403 or so and do not see any content.
Is there an easy way to configure Discourse in this way?

(Jay Pfaffman) #2

You could configure firewall stuff on azure to just not respond. You could configure nginx to do the same. Neither really has much to do with Discourse.

What most people do is just turn on the login required site setting and turn off the ability to request accounts.

(Raphael Haase) #3

I configured the Azure virtual machine inbound rules. This did the trick. Thanks!

(RĂ©gis Hanol) #4