I’m not very well-versed in using load balancers, but this time I really need to use it.
Let’s say my website is called badthreadcomments.com. Every time a user enters my site, their request is sent to my load balancer configured on a VPS, this load balancer should send the request to Discourse hosting in the same VPS, and then Discourse responds to my load balancer, but oh wait, the documentation for using Discourse in production says the following:
“Discourse will not work from an IP address; you must own a domain name such as example.com to proceed.”
The idea is that the load balancer and Discourse are hosted on the same VPS, so communication between my load balancer and Discourse is 100% local, so, if production requires a domain, what am I supposed to do? what’s the plan here? buy a second domain? if a second domain is necessary, wouldn’t that add more latency to the client?
That means that the clients must access Discourse via a domain name. Internally, behind the last customer facing reverse proxy / load balancer you are can do whatever.