Hello I have the same problem like several people with the message "Connection to NodeBB has been lost, attempting to reconnect.."
But it only happens for some users.
I assume that their browser doesn't support websockets. Because the forum we set up is used in the medical industry.
Usergroups:
- Governmentel Health Departments
- Hostpitals
So my questions:
- Are their any limitations for nodebb caused by Browser Versions or High Security Networks?
- Can nodebb run without sockets?
The configurations of nginx and nodebb should be correct. Because it's all setup according to the documentation.
Running on Ubuntu 18.04 LT min on Google Cloud.
It's working when I'm using it, and several other people. But not for some users.
NGINX:
server {
server_name xxx.yyy.ch;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:4567;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/xxx.yyy.ch/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/xxx.yyy.ch/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = xxx.yyy.ch) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name xxx.yyy.ch;
return 404; # managed by Certbot
}
Config.json:
{
"url": "https://xxx.yyy.ch",
"secret": "bd50dacd-2089-840c-8704-6d3cfe8da3e4",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": 27017,
"username": "",
"password": "",
"database": "nodebb",
"uri": "mongodb://admin:password@localhost:27017"
}
}