Installation: recommendations from NodeBB team


  • Plugin & Theme Dev

    Hello guys,

    I'm probing NodeBB, if it is good choice for migration from mammoth IPB.
    I would like to know what do you think on these subjects:

    Initial Database selection

    What do you think, which DB better suits NodeBB? Redis or Mongo? And why?

    Nginx, ot not to nginx

    Is it really good choice to have NodeBB as standalone application? For example, nginx provide nice options to cache some requests to static stuff like images, etc. Do you handle it? One of nginx examples:

    # Media: images, icons, video, audio
        location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|swf)$ {
                expires 1M;
                access_log off;
                add_header Cache-Control "public";
        }


  • Initial Database selection

    I would prefer mongo, with redis on it for session etc, so if your server fail you will keep all of your post/etc ;)
    If you need a very reactive forum, you can consider redis also o: very reliable, as of your machine have alway juice !

    Nginx, ot not to nginx

    NodeBB run pretty well with nginx, and nginx is much more performant than nodejs for static files ;) so i will recommend you nginx !

    (Sorry for my english xD)



  • Redis is just as reliable as mongo and can be backed up to a different server just as easily, above.


  • Admin

    @Nicolas check out: Using nginx to serve NodeBB's static assets

    I'd pick Mongo for a large migration as well. Mongo is stable, and we're moving over to it for our hosted NodeBBs. Redis is just as supported as well.


  • Admin

    Using mongo for the forum, redis for session-storage and socket.io and nginx for load balancing and serving static assets is a pretty good setup.

    When you run more than one nodebb process you already need redis for socket.io-redis.



  • What he says.
    Use both!



  • @baris said:

    Using mongo for the forum, redis for session-storage and socket.io and nginx for load balancing and serving static assets is a pretty good setup.

    When you run more than one nodebb process you already need redis for socket.io-redis.

    @Technowix said:

    I would prefer mongo, with redis on it for session etc, so if your server fail you will keep all of your post/etc ;)

    Uh ? :p




Looks like your connection to NodeBB was lost, please wait while we try to reconnect.