short story, don't use master in production. there will always be issues like this, the stable branch is v1.x.x
phit
Posts
-
Can't edit categories -
The proper way to deploy a custom pluginrun this in your nodebb directory
npm install /path/of/your/pluginfolder
-
The proper way to deploy a custom pluginnpm install supports local folders
source -
Invalid CSRF Tokenfor the record for people finding this via search, for apache2 you have to set this somewhere in your nodebb vhost configuration
with sslRequestHeader set X-Forwarded-Proto "https"
without ssl
RequestHeader set X-Forwarded-Proto "http"
you might have to enable mod_headers to do so!
-
NodeJS ClusterAll your questions were answered, the only way NodeBB supports clusters is with multiple ports and load balancing with a third party webserver like nginx, the reasons were outlined by julian earlier in this thread.
How to set that up was linked by JasperNL, the end result will that you only have to open one port to the outside. I honestly don't see the usecase of only using one internal port for the whole thing.
-
Performance Improvement@exodo said in Performance Improvement:
55 mobile and 63 on pc isn´t good results
the only reason it's so low is that javascript is being loaded first
those numbers are useless, the render blocking is by design since the forum html is loaded via javascriptI guess some things should get moved further down in the document though that aren't needed to render the page
@julian said in Performance Improvement:
Defer parsing of JavaScript
Not possible at this time. NodeBB requires a specific order in which to load its js assets, and they are done in the header right now.
-
Performance ImprovementLeverage browser caching
Add Expires headersassuming you run nginx or apache as proxy you probably configure it to send cache headers for files that are static
Minify JavaScript and CSS
nodebb does this already, if this shows up for your forum its probably caused be either a plugin you installed or any custom css/script
Any plans to improve these? Any suggestions/tips to try?
the rest is rather, well expected, and most bigger websites that you test will have the exact same issues. mostly sideeffects of the modern web being javascript/css heavy and using libraries from multiple sources
though i would like to see an option to host external sources the default themes use on your own server, right now that involves a lot of manual work
Make fewer HTTP requests
http2 to the rescue! seriously try it out
edit: so i checked google pagespeed for my site and the community forums, link for the people that are interested:
my site
this sitehonestly nothing too bad, but I opened two issues for things that should be an easy fix on the nodebb end
use mousetrap.js minfied
minify composer.js -
Nodebb forum loaded without styles after fresh installation"url": "http://forum.maguss.org:4567",
replace that with
"url": "http://forum.maguss.org",
-
How to install NodeBB on Debian 8 (jessie)?this should work for you, you should've mentioned you are using plesk on the server early on
since it completely changes how apache2/nginx configuration works
https://community.nodebb.org/topic/9215/running-nodebb-with-plesk-tips -
Why are there two types of Groups in NodeBB?system groups are automatically assigned, or have special privileges that can't be achieved with "normal" groups
the first two can't be given manuallyguest - as the name says, everyone who is not logged in
registered-users - everyone who is logged in
administrators - has access to the admin control paneland this one is pretty new
Global Moderators - has moderate access for all categories without having to set it for each category -
Notification will not go awaymake someone mention you on the forum or anything that gives you a notification, then click read all
worked for me last time I ran into this, I'd be curious to know what causes this though -
request - Nodebb Blog plugin@charles look at the posts above.
nodebb-plugin-featured-topics-extended does exactly that, no extra app needed just a nodebb plugin! I can really recommend using it, you can see it in action on my site. -
Who is using NodeBB?just saw FiveReborn a GTA 5 multiplayer server replacement is using nodebb aswell
http://fivereborn.com/ -
502 bad gatewayyeah, no issues here either running node v4.4.5LTS with nodebb 1.0.3
I wonder if it is maybe a plugin causing it? -
Sort tables@mechanix glad you figured it out
-
Sort tableshtml in the forums is generated by markdown-it the line responsible for creating the <table> is here, in theory you should be able to give it an attribute with smth. like this
token = state.push('table_open', 'table', 1); token.map = tableLines = [ startLine, 0 ]; token.attrs = [ "class", "sortable" ];
-
Composer has no text alignment?Threw something quick together based on nodebb-plugin-spoilers, I also looked into extending the existing markdown plugin using the extension support the parser has, but didn't really succeed. Would be great if we could just add markdown-it extensions in the admin panel to extend the syntax, cuz there are plenty existing ones
-
Forum Backup -
Nginx problems@tqwhite said in How to replace localhost:4567 with domain name:
If you are using Windows, well, I googled "windows curl equivalent" and was reminded that I'm really glad I don't use Windows. You might find it more useful.
Slighty OT but theres no equivalent you just use curl like on any other platform..
-
Missing icons / broken CSSI use this for Lumen with persona
/* CHAT CLOSE FIX*/ .close, .close:hover, .close:focus, .close:active, .close:active:hover, .close:active:focus { color: #000; }