Thanks a lot, @baris! On the other side, now I learned a little about mongodb and the inner workings of nodebb.
Looking for swedish community members, say hello. Here is my work in progress https://www.nodebb.se
am close, am norwegian
Great that works to Feel free to try out my sso-facebook. Don't know if it works yet Will add twitter and google sso later.
"Jag tror du förstår min svenska bättre än jag förstår norska hehe"
The ssl cert will be fully activated in a few hours. Always pain in the ass with new sites hehe
Cool if you want to establish a Swedish support site for NodeBB you have my blessings at least, but you would probably have to follow some rules (I am unsure, but obvious stuff, since you're using our brand name in the domain.. Defer to @julian for this)
That said, there is a similar Chinese support site and we do link to them, so once your community grows we should link to you as well
Nice, I hope that the rules is easy to follow The most important thing is that we reach out with this cool project! What is the link to the "Chinese support site" ?
@julian Whats the rules
I will be running a stable version of nodebb. BTW: The ssl cert for the site is complete, yeay
@Mikael There is a problem with Cloudflare-SSL and NodeBB because Cloudflare blocks websockets when using a free plan right now. This might change in the future, but right now you'd have to buy a certificate for the (sub-) domain you'd want to run NodeBB on. You can see that the websockets are not working if you do CTRL+Shift+I and then go to the "console" tab. There you'll see something like this every ~ 0,8 seconds:
WebSocket connection to 'wss://www.nodebb.se/socket.io/?EIO=3&transport=websocket&sid=`xxxxxxxxxxxxxxxxxxxx' failed: Error during WebSocket handshake: Unexpected response code: 400
Ohhh, is there any workaround for this issue without buying a cert?
@ApfelUser What will break if Cloudflare blocks websockets? The forum seem to work anyway
@Mikael I don't know if that has changed by now, but I tried using Cloudflare SSL about ~2 months ago & people couldn't post, chat and sometimes not even register. So I ended up buying a cheap SSL certificate. If you want to use SSL there is no workaround. Of course you could disable SSL & the forum would run on HTTP then. But I think that is not what you want. You can get cheap SSL at e.g. Namecheap for around €9.00. Or you wait for Let's Encrypt.
It sems to work anyway. @psychobunny is it possible to disable websockets in nodebb and run it without
Supposing your site is example.com and the subdomain you used for websocket is websockets.example.com:
Go into the admin control panel on your NodeBB site, then go to Settings > Advanced and ensure that underneath the "Set domain for session cookie" you've written .example.com (note the first dot). Click "Save Changes", clear your cookies and log in again. That's what solved it for me.
Is this the best solution for this? Does anyone have a nginx configfile with this setup? I guess that both vhost should go to localhost:port <-- is it that easy ?
Have i missed somthing here ? Is websockets only used for sessiondata?
Its working now but the only way to get it to work is to buy a cert Or get one for free here https://www.startssl.com/ (Thats what i did )
Crap, I hade som ssl issues but now they should be solved. Almost everything fixed but the mail with SMTP ssl