Also https://docs.nodebb.org/, I added a link to it in the nav bar as well
Can you use cloudflare or any other free CDN with nodebb?
ronalbarbaren last edited by
@ronalbarbaren fastlys pricing structure is a joke.
If your site uses 10GB of traffic over 10 million requests, the charge per Fastly's pricing page would be $8.70. Because this amount falls below the $50 monthly minimum, we would charge you $50 for that month.
Whole lot of nope...
I use free for developer plan
P/S: I'm testing with Incapsula now
Using CloudFlare DNs only also
ronalbarbaren last edited by
As of August 5, 2014, CloudFlare supports WebSockets for Enterprise customers only. (Announcement)
WebSockets are currently only available for Enterprise customers, but will be available for other plan levels in the future.
All other customers -- Business, Pro, and Free -- should create a subdomain for Websockets in their CloudFlare DNS and disable the CloudFlare proxy ("grey cloud" the record in CloudFlare DNS Settings).
Im using cloudflare with my install and its working fine
lenovouser last edited by
@xCausxn Nope, its not :
"WebSocket connection to 'wss://forums.gamerlabs.net/socket.io/1/websocket/hYGYH3JWv9X76FZYhx7Q' failed: Error during WebSocket handshake: Unexpected response code: 502"
Well the forum works fine without it
i know thats not the point but hehe
Marc Manthey last edited by macbroadcast
hey folks, I was´nt aware the CF does not support Websockets , thanks to this thread, what i like about CF is that you can entirely hide your real IP, the DNS just points to an anycast IP address and your not exposed to hackers or DDos, so far so good, changed the settings , but now my nodebb forum seems kinda frozen, i am logged in as admin, but can't change anything, not even log-out, what needs to be done to bring it back to life ?
@macbroadcast Most likely disable any sort of "speedup" caching, and disable CF acceleration as well.
v4 last edited by v4
How can this be optimized?
There are page rules and URL patterns for detailed settings. Would like to switch on SSL but disable cache for the nodebb. Which paths could be cached? Which not?
@v4 I am unaware of the current state of CF's caching mechanism. It may very well work fine with NodeBB, but when I tested (1.5 years ago!!) it did not work well.
Namely, CF's new Rocket Loader was minifying our already minified files, and possibly serving them out of order. If you investigate the source of a NodeBB page, you'll see certain scripts that are not bundled into the minified js file. CF modified the page html to load their own cached js, possibly loaded scripts out of order, and things just didn't load properly.
CF also doesn't proxy websockets correctly (except for the most plan, but this may change in the future, hopefully).
As a follow up, is there some way to specify a subdomain for sockets.io? I have seen mention of adding something to config.json, but my attempts to add that failed.
There should be, but not without modifying the code somewhat. I don't think you can do it out-of-the-box.
Ahh thanks for the clarification, I'll look at what needs to be changed, but I probally leave it alone for compatibility reasons.