Forum listen on all domains for server ip


(Fer Nando) #1

Hello, my forum is accessible from any domain that points to the server ip, how can I restrict it to a particular domain?

I have five domains, for googlebot i have five discourse installations!


(Jeff Atwood) #2

Use https in this case.


(Fer Nando) #3

It´s dificult, my forum move big data in attachments, when i read the discourse features, i see that i can use s3 to store all, it´s a great idea but i read its use is discontinued for future versions, this is the problem, i can´t store 20gb of data only for use https, don´t get remote attachments to local always.


(Felix Freiberger) #4

Why would enabling HTTPS have anything to do with where attachments are stored?


(Fer Nando) #5

If the external resources dont are ssl some browsers have problems wich it.


(Jeff Atwood) #6

You read incorrectly; this is not the case.


(Felix Freiberger) #7

The problem with including non-https attachments is that some browsers will mark your site as insecure – just as they do now, because you don’t use https at all!


(Fer Nando) #8

I put firewall rule, block all to serve only one domain to docker interface only for http and https ports, i testing it, if works without errors from discourse, i put here the rule for other members. Sorry for my english.


(Fer Nando) #9

If i move all my attachments now to s3, dont have problems in future? In the next days, chrome make advertence to all sites that cant have your login page in https, the idea is make all sites ssl in the future and this is the primer step to force it.