Block Direct Connections

(Bálint Antal) #1

How can I block direct connections to Discourse and force people to use my domain instead of the ip:port version?

It is important because my server would work like this:

Varnish -> Nginx -> Discourse.

(Sam Saffron) #2

use a private ip for nginx and discourse.

(Bálint Antal) #3

Yeah, I see and I’ve set Nginx to listen to, but how can I set Discourse to use only

(Sam Saffron) #4

Your container is in a sandbox, you choose what to export out of it.

(Bálint Antal) #5

I see! People wrote everywhere that I want to use iptables, but there was no formula which would work for me.

The solution is to write the ip ( before the port:

  - ""

Thanks for your help!