NodeBB SEO is in fine fettle.
cloudflare is bad for trafficReturns this thread as the #1 result in duckduckgo 😳
Does this answer the question?
@julian said:
@TheBronx Might be the link in your post, but yeah... we sometimes do get false positives from Akismet
haha no problem, did the trick of posting some shit and then editing with the real message. Akismet, I won.
I can't find what's missing in our nginx conf. I want to try again without cloudflare, it should work...
I've been trying nginx configuration for hours but still can't make it work fine.
Some requests keep returning 400 Bad Request, with a message saying: "Session ID unknown"
Enabling the websocket log I've found that when this happens, the following message is printed in the log:
io: 0 emit [ 'disconnect', { reason: 'transport error', rooms: [ 'pLywexv6lX6jRFvcAAAA', 'online_guests' ] } ]
There are also some 502 Bad Gateway errors, but it all seems to be caused by Nginx not being correctly configured for NodeBB and long polling.
I'm not familiar with Nginx, which makes things harder. I've tried with a few configurations found here and there, like:
proxy_buffering off;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
keepalive_timeout 60s;
proxy_buffers 8 32k;
proxy_buffer_size 64k;
large_client_header_buffers 8 32k;
Some of them seem to increase 502 errors, decreasing bad requests, but that's all I can say, pretty useless.
What seems clear to me is:
ip_hash
from upstreams.ip_hash
from nginx upstreams in nodebb, then I start to see hundreds of requests, without sleeps in between. That's a good improvement!What I'm noticing now is that whenever a request takes more than 10 seconds to respond, it fails with a bad request. But when the request gets answered before 10s, it works:
We are getting closer, I hope
@baris said:
@TheBronx Hey that 10s leads me to believe it might be this piece of code.
https://github.com/NodeBB/NodeBB/blob/master/src/webserver.js#L44-L46
Try commenting it out or increasing it and see if it works.
WHAT THE FUCK IS THAAAAAT haha, it works!!!!!!!!!!!!!!!!!!!!!!!!!
you guys are gonna pay for this xD