You're missing the proper value in config.json.
UNSOLVED nginx + cloudlflare = socket.io 502 errors?!
Im running NodeBB 1.17.1 and nginx/1.19.6 on the same machine as proxy. The whole machine is behind cloudflare.
everything works beside a little problem with the socket.io
gives very often 502 errors. Whatever i set in my nginx conf does not seem to help.
People loosing the connection for some seconds before they can continue.
is this a common problem or does it have something todo with cloudflare?
btw the page https://docs.nodebb.org/installing/os/configuring/nginx rerturn error 404 and is referenced in the documentation
Where is that link referenced in the docs? Correct link should be this:
@pitaj maybe in your archive.. i am not sure.. meanwhile i found the correct page.. but i am still not able to fix this problem
XHR polling is not working and WSS also not
Have you seen this FAQ topic?
@pitaj yes i have read this...
i finally resolved this issue..
it was the way nodebb got started in my initd script
the PIDFile was responsible for this bug
after correcting the path from
it works like a charm.. strange isn't it? but i am happy to finally got this resolved
@joker-0 sounds like NodeBB was probably constantly being restarted by initd. That would certainly cause these issues. Glad you figured it out.
@pitaj it is not just me, beeing happy !!! my whole community loves it. Thanks to you .. which made me reading all the docs again and found this miss configuration