Hello,
OS: CentOS 7
Nginx 1.12.2
Node: v8.11.3
RocketChat: 0.69.1
RocketChat Android App: 2.5.1 Build 2036
SSL Cert from Let´s Encrypt
After all set, i cannot view the Chats in Android APP. My system is fully operational via web. I have already done a long search on the internet and in the forum. I saw that there are some mentions regarding the configuration of the websocks, but I’m using nginx.
Here are my service config file in /etc/systemd/system/rocketchat.service:
[Unit]
Description=Rocket.Chat server
After=network.target nss-lookup.target mongod.target
[Service]
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocket
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL=https://nexxus.nuvem.top PORT=3000 DDP_DEFAULT_CONNECTION_URL=https://nexxus.nuvem.top
ExecStart=/usr/local/bin/node /opt/rocket/Rocket.Chat/main.js
[Install]
WantedBy=multi-user.target
Here are my /etc/nginx/conf.d/default.conf:
upstream backend {
server 127.0.0.1:3000;
}
server {
listen 443;
server_name nexxus.nuvem.top;
ssl on;
ssl_certificate /etc/letsencrypt/live/nexxus.nuvem.top/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/nexxus.nuvem.top/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
error_log /var/log/nginx/nexxus.nuvem.top-error.log;
location / {
proxy_pass http://backend/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto http;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}
From time to time the following error appears in the nginx logs:
[error] 1091#0: *1 connect() failed (111: Connection refused) whlie connecting to upstrem, client: 192.168.101.31, server: nexxus.nuvem.top, request: “GET /sockjs/info?cb=dx23dfasdf HTTP/1.1”, upstream: http://192.168.101.10:3000/sockjs/info?cb=dx23dfasdf", host: “nexxus.nuvem.top”, referrer: “https://nexxus.nuvem.top/home”