The discussion revolves around using a load balancer with Discourse in production. Willy is unsure if having two domains is necessary when using a load balancer, as Discourse requires a domain name to function. Falco clarifies that clients must access Discourse via a domain name, but internally, behind the last customer-facing reverse proxy/load balancer, any setup is possible. Willy seeks further clarification on the order of components, and Falco explains that Discourse is like any other web application, providing a diagram to illustrate the setup. Jelle_van_der_Pal recommends checking out Nginx Proxy Manager for a broader understanding. The key takeaway is that a single domain is sufficient, and the load balancer can be used internally without requiring a second domain.
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.