Yesterday I have set up Rocket.Chat instance on VMWare Virtual Machine installed on dedicated server.
Rocket.Chat is installed on Ubuntu 20.04 LTS and as Load Balancer I am using Nginx Proxy Manager.
To forward traffic from another ports than 80/443 (TCP and UDP) directly to Rocket VM (in case of Rocket this is 3000), I am using firewall-cmd and the rules for Rocket.Chat are as below (masquerade enabled):
Webapp is working fine, the desktop application also works fine, but the mobile app (on Samsung A6 2018 and iPhone 12 Pro Max) is not working, because I am getting an error:
**Ooops! Websocket îs disabled for this server. Contact your server admin. **
Also, I am using nginx as web server, please find the config below:
Hi, thank you for answer.
Let me explain nginx: the first Nginx instance is installed on hypervisor with public IPv4. I have created a NAT network on it so all VMs have access to Internet. The role of this Nginx is load balancing (it works fine with ie. mail server and some other stuff). The second Nginx (routed by Nginx LB) is holding Rocket.Chat on local IPv4 192.168.200.8
I removed 3000 forwarding.
Also, HTTPS is being forced on the level of load balancer - HTTP Requests are being redirected to HTTPS requests immediately, so all traffic goes to 443 anytime.
I edited the nginx config to comply with HTTPS as I think I made a mistake in config (port 80 is no longer in use on Rocket.Chat VM), but it still does not work: