Page 1 of 1

Add a proxy to hit gateway.rocket.chat

Posted: Mon Dec 05, 2022 9:18 am
by Jess55
Hi everyone,
I would like to know how my rocketchat server can pass trough proxy to hit the gateway for push notification ?
Because this domain have a ip dynamic range, today it’s only possible to have notification by create a firewall rule to hit a 443 port. It is not really a good practice.

Re: Add a proxy to hit gateway.rocket.chat

Posted: Mon Dec 05, 2022 11:39 am
by RasySumka
Creating a firewall rule to hit port 443 isn't a good practice, but it's quick.

Re: Add a proxy to hit gateway.rocket.chat

Posted: Mon Dec 05, 2022 11:40 am
by AlexTinny
And I'm trying to set up NGINX as a reverse proxy to use the RocketChat service, but the service isn't loading in the right place. The inbound port is 2357, where the service (RocketChat) is running, and the outbound port it should be running on is port 3000. Then I figured out if NGINX is running on the host machine as a Linux service (and not as part of the docker-compose file ). I need to edit the last line of the NGINX configuration so that the location points to localhost:2357. I need to enter something like proxy_pass http://localhost:2357. It might come in handy, I used shiftproxy.io.