Installing Discourse with reverse proxy using HestiaCP

I have the following infrastructure:
2 fiber links, 1 business 1000/500 and another common link 300/150.
In addition, I have another business fiber link, which is at my house, which I use only to have my own authoritative DNS.
In other words, I control my DNS myself.

The two links at work are on a mikrotik RB 760iGS
Mikrotik connects two physical servers, one TrueNAS and one with XCP-ng.
Mikrotik manages ports and rules for the VM where I have HestiaCP installed and manages my websites.

HestiaCP, in addition to hosting my websites, uses it as a reverse proxy for my docker applications that are on truenas and for applications that are running on VMs on XCP-ng.
All managed by HestiaCP’s Nginx.

In TrueNAS, in addition to serving as a NAS, it also serves my Dockers Containers.
XCP-ng is only for VMs, where I have the VM with HestiaCP, and now I created a VM just for Discourse.
That’s where I’m having problems installing Discourse, it doesn’t allow installation, because even though I’ve already configured the reverse proxy in Hestia’s Nginx, it reports an error in the domain.

The doubts:
Is there a way to use web.socket from the discourse VM to the HestiaCP VM, that is, without being on the same machine?
Or is there any other way to complete the installation?

1 Like