Separate server for proxy


#1

Hello All,

Is there a way to install RC and reverse proxy on two separated servers?
If yes could you provide some short manual please?

Thanks in advance


#2

Sure. Like other web applications, is possible do it. On your reverse proxy (NGinx, Traefik, etc) point to the IP and port running the rocketchat application. The mongodb, hubot, etc, does not need be exposed.

Here some documentation: https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/.

Here another example using docker compose (in this case, the Traefik proxy is running in the same VM, but could be in another) https://github.com/fititnt/chatops-wg-infra/blob/master/containers/chatopswg/rocketchat/docker-compose.yml. This docker-compose file was based on one provided as example by rocket chat at hxxps://github.com/RocketChat/Rocket.Chat/blob/develop/docker-compose.yml


#3

Nginx is best suited for this task. Easy to set up and works a treat.

Take a look in the Rocket.Chat GitHub and docs for some example nginx configs.