Skip to content

Technical Support

Need help with installing or configuring NodeBB? Look here.

4.7k Topics 26.2k Posts

Subcategories


  • User documentation for NodeBB

    44 Topics
    44 Posts
    Jay MoonahJ

    One of the first important things to do after setting up NodeBB is to set up an emailer plugin. While NodeBB does include a local emailer, if your forum is particularly active we recommend using an third-party emailer such as SendGrid which provides better deliverability for sites that send a high volume of email. Setting up SendGrid in NodeBB is very easy.

    Open the administrative dashboard using the 'gear' icon on your forum. Open the Extend > Plugins menu, and select the Find Plugins tab. Use the search on the right. Type 'SendGrid' and the plugin should appear -- select Install when you see it. From Installed tab on the Plugins menu, search again for 'SendGrid' and select Activate. Activating the plugin will require a restart of your forum. To restart, select the Dashboard menu and press the Restart button to the right. After NodeBB restarts, the SendGrid plugin will be active.

    After you restart, there should be a item called Emailer (SendGrid) under the Plugins menu -- if you don't see this right away, try refreshing your browser.

    Sign up to SendGrid

    Go to the SendGrid website, open the pricing page and scroll to the bottom. Click on the link and create your free account. Once you've confirmed your SendGrid account via email, you should be able to login to the SendGrid website. On the left side of your SendGrid dashboard, open Settings and click on API Keys. Click the button in the top right to create a new key. Make sure that the key has Full Access for Send Mail and Alerts.  When you are done, the new key to your clipboard.

    Now, return to the SendGrid menu on your NodeBB admin panel. Paste the API key into the field, and save your changes. Now go back to the Dashboard to restart your forum one more time.

    SendGrid should now be working for your forum.

    YouTube Setting up SendGrid mailer for NodeBB

  • NodeBB guides, how-to's and general tips and tricks

    82 Topics
    599 Posts
    barisB

    Quick start plugin has an example on how to add a new api route https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/library.js#L40-L76.

    The hooks that are fired client side are for client side code in plugins. If you want to pass data from the client to the server you have two options.

    Create an api route like in quick start plugin Create a new socket event listener on the server side and use socket.emit() client side. Example here
  • 25 Topics
    201 Posts
    eeeeeE

    I think you answered my point, by agreeing there are issues.
    I didn't even attempt to deploy nodebb, I had problems with much smaller projects!
    Nextjs routing was going through a change of design at the time, so perhaps that is less confusing now, but there were multiple other headaches. I would get build errors and issues with package management.

  • [Solved] Access to my NodeBB by subdomain

    7
    0 Votes
    7 Posts
    1k Views
    TiiixT

    So, with this configuration, it's ok !

    <VirtualHost *:80> ServerName mydomain.com ServerAdmin [email protected] DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^[^\/]*\/(.*) https://mydomain.com/$1 [R=301,L] </IfModule> RewriteCond %{SERVER_NAME} =mydomain.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> <VirtualHost *:4567> ServerName subdomain.mydomain.com # Basic security headers Header always set X-Content-Type-Options "nosniff" Header always set X-Xss-Protection "1; mode=block" # NodeBB header RequestHeader set X-Forwarded-Proto "https" # Static file cache <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css)$"> <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 14 days" Header set Cache-Control "public" </IfModule> </FilesMatch> ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> # Custom Error Document when NodeBB is offline ProxyPass /error-documents ! ErrorDocument 503 /error-documents/503.html Alias /error-documents path/to/nodebb/public # Websocket passthrough RewriteEngine On RewriteCond %{REQUEST_URI} ^/socket.io [NC] RewriteCond %{QUERY_STRING} transport=websocket [NC] RewriteRule /(.*) ws://localhost:4567/$1 [P,L] ProxyPass / http://localhost:4567/ ProxyPassReverse / http://localhost:4567/ # Log stuff ErrorLog ${APACHE_LOG_DIR}/nodebb-error.log CustomLog ${APACHE_LOG_DIR}/nodebb-access.log combined RewriteCond %{SERVER_NAME} =subdomain.mydomain.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>

    The problem is that I had not put 2 different ServerName in the config, so all traffic was redirected and rewritten in HTTPS on the same ServerName : subdomain.mydomain.com

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    28 Views
  • Guest download permission

    5
    0 Votes
    5 Posts
    1k Views
    barisB

    Not right now, feel free to open an issue for it on github page.

  • 0 Votes
    2 Posts
    649 Views
    PitaJP

    Your reverse proxy is set up wrong, or not set up at all.

  • How to increase Avatar's dimension?

    2
    1 Votes
    2 Posts
    570 Views
    yariplusY

    Settings => Uploads => Profile Avatars

  • Critical situation (Everything gone!)

    1
    0 Votes
    1 Posts
    498 Views
    M
    NodeBB version: 1.10.0 Database type: mongo Database version: 3.2.11

    Hi, we have a critical situation here. In order to increase the speed, We replicated mongodb (master/slave mode; whotout sharding). It increased the speed for a few months But now it seems that the database is missing and all of the users, topics etc. ??
    I don't know what cause this problem. Can we find out whether the database is missing or not?

  • 0 Votes
    2 Posts
    882 Views
    barisB

    Ahh yeah that's a bit confusing, the merge topic tool can be used between categories, so you should click merge first and then select the topics. The placement seems like a theme/skin issue.

  • Automatic reboot when changing the template

    6
    0 Votes
    6 Posts
    1k Views
    PitaJP

    @butonix if you run ./nodebb build does it show up though?

  • Adding javascript in the footer

    15
    0 Votes
    15 Posts
    3k Views
    T

    @pitaj said in Adding javascript in the footer:

    Ok have you tried embedding the whole thing in the footer HTML? What is the script and stuff for? Analytics? Are there any alternatives that don't require a script?

    Yes, it breaks certain part when it is placed in that widget. It's so that when users from other countries click on the link for amazon they get redirected with the US referrer code link embedded their countries amazon store.

  • Menu in Navbar don't know how to remove it

    Solved
    3
    0 Votes
    3 Posts
    845 Views
    M

    @Atayz I did that but sadly not fixed.

    Had to restore a back-up from 2 days ago. Now it's gone but I miss data from 43 hours sadly 😞 (my fault i know)

  • Incomplete Installation - Missing Directories

    12
    0 Votes
    12 Posts
    2k Views
    A

    I changed the permissions and checked, as I said before. I even tried the alternative configuration from the NodeBB scaling guide. That didn't make any difference. There are missing directories and I don't know why.

    I'll delete NodeBB and move on. Thanks for trying to help guys.

  • 0 Votes
    4 Posts
    1k Views
    barisB

    @hoang6 go in to your nodebb folder, the logs are inside the logs folder, open output.log and paste the last 20-30 lines which should show the crash.

  • Nodebb Running but Blank Page

    5
    0 Votes
    5 Posts
    1k Views
    D

    Please first check the data storage directories of your MongoDB. While doing some crazy tests and more or less intentionally made the MongoDB go crash I found at times that it "forgot" about the available data, even though there were still kind of big files probably with all the data. I don't know how to recover from there but I assume there would be some articles out there in the internet helping you with it.

    But yeah, mongodump, borg backup, lftp synchronize to remote drive (or similar). Every day. And if you're at it, make sure the backups on your local computer are working as intended as well 😉

  • 0 Votes
    1 Posts
    512 Views
    ButonixB

    http://prntscr.com/jzjkvo
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14), code=ETIMEDOUT, errno=ETIMEDOUT, syscall=connect, address=159.203.9.60, port=443

  • 0 Votes
    2 Posts
    842 Views
    A

    Solution:
    I've copied the catagories.tpl from Vanilla to Persona, enabling me to use Persona's mobile menu with Vanilla's categories style, both.

  • Mobile Chat Bug

    2
    0 Votes
    2 Posts
    1k Views
    A

    😩.........Forgot to mention it's Vanilla theme, so the mobile view is unlike Persona.
    I wish it was , though

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    17 Views
  • 0 Votes
    5 Posts
    1k Views
    D

    Thanks @baris I have done.

  • Forum post breaking theme

    5
    0 Votes
    5 Posts
    1k Views
    B

    Thanks @baris

    I managed to fix it by disabling the plugin, which let me then edit the post and I've also replaced the plugin with one that's actually maintained.

    Thanks again for the help in locating this error.

  • 0 Votes
    3 Posts
    1k Views
    S

    Thanks @Giggiux. I don't see how you assign a category to a topic, either when you create the topic or at a later stage.