@mattdjuk This could be something (clutching at straws a bit here)...
I was just looking in the cookies, I see these:
Screenshot 2022-05-26 113221.png
It has 2 express.sid cookies
1 is for forum.$$$$$$$.co.uk and the other is for .$$$$$$$.co.uk
After spending a few days debugging a problem on our forum/nginx, I've finally found a solution to a massive amount of http 400 errors we've seen when loading the nodebb forum. These problems normally only manifest itself on high load.. In our case >500 connected clients.
In the browser console you will see responses like this (for the failed connections):
{"code":1,"message":"Session ID unknown"}
Set the max_fails on the upstream to something higher than default (1).
Example:
upstream io_nodes {
ip_hash;
server 127.0.0.1:4567 max_fails=50;
server 127.0.0.1:4568 max_fails=50;
server 127.0.0.1:4569 max_fails=50;
}
I suggest someone to update the NodeBB documentation, including this in the nginx examples.
@hek do you mind reposting this on the issue tracker? I'm going to make a new issue tag for documentation-related problems so I can more easily track them. Thanks.