NodeBB activation email

General Discussion
  • @raul What's the server name set to in your nginx block under sites-available?

    Did you restart nodebb when you changed use port to false?

  • Hi,

    Thanks for your help with this, server name in Nginx is the same as base_url -, proxy_pass is to the ip:port. And I have been restarting nodebb to ensure the new settings take effect, just to be doubly sure.

    I tried over 9 registrations convinced I am making the usual silly but frustrating errors that are often the biggest time sinks, and each one has the 4587 port which will not resolve. This is on the latest NodeBB 0.4.3, could this be an issue with the url generated by the mandril plugin, is that working well for others?


  • Do you get any output when you run sudo nginx -t?

    I use mandrill with no problems on master, so it seems down to the configuration.

  • Oops a silly typo on my end on my first post.

    To clarify the activation url generated by mandrill has the nodebb port in the url itself like this

    The nginx setup itself seems to be ok, nginx -t test is successful without issues so far. Since it's working for you this must be some configuration error on my end, this is a brand new testing instance of NodeBB built yesterday, no customization so far. Let me try another rebuild and check. Thanks.

  • @raul can you post your nginx server block file here (you can remove any info relating to the server or the URL if you like).

    The default port for nodebb is 4567, worth making sure that you've not mismatched the ports in config.json and your server block.

  • @a_5mith

    upstream nodebb  {
          server; #nodebb
    server {
            listen  80;
            location / {
                    proxy_pass      http://nodebb;
                    proxy_redirect  off;
                    proxy_set_header        Host $http_host;
                    proxy_set_header        X-Real-IP $remote_addr;
                    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_$
                    proxy_set_header X-NginX-Proxy true;
                    # Socket.IO Support
                    proxy_http_version 1.1;
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";


        "base_url": "",
        "port": "4567",
        "use_port": false,
        "secret": "xxx",
        "bind_address": "",
        "database": "redis",
        "redis": {
            "host": "",
            "port": "6379",
            "password": "",
            "database": "0"
        "bcrypt_rounds": 12,
        "upload_path": "/public/uploads",
        "use_port": false,
        "relative_path": ""
  • @raul Have you tried removing 4567 from your upstream nodebb?

    I don't use it on mine, don't entirely know what it does. 😆 Everything else looks ok though.

  • @raul Very weird! Can you try sending yourself a password reset email and confirm that the port shows up for you?

    If not, then try registering a new account with an email you control, and check again. From your config, no port # should be added!

    (It's quite possible you changed the config file, but didn't restart NodeBB, so more users registered and got the port, since it wasn't reflected in the loaded settings)

  • @julian @a_5mith

    Thanks for stepping in guys. I just did a reinstall of nodebb and retried the activation email and finally I have the activation link url without the port.

    My configuration hasn't changed, its the same as above, but somewhere between my 3 and 5th attempt yesterday I changed the use_port option to false after reading more on the forums, and restarted nodebb with the ./nodebb restart command. I also did a couple of ./nodebb start and stops when it still didn't work.

    I think either this has to do with caching or the restart was not loading the change properly, though I would think this would be a rare thing, could be caching

    @a_5mith are you running nodebb on port 80, without that you would need to pass the nodebb port 4567 for the nginx proxy to work, wouldn't it?

    Thanks guys!

  • @raul said:

    @a_5mith are you running nodebb on port 80, without that you would need to pass the nodebb port 4567 for the nginx proxy to work, wouldn't it?

    Yes. that is correct. We pass in the port (or rather, we specify the proxy_pass value directly😞


Suggested Topics

  • Inbound Email Reply

    General Discussion
    0 Votes
    1 Posts
  • 0 Votes
    4 Posts
  • 0 Votes
    2 Posts
  • 0 Votes
    47 Posts
  • NodeBB on heroku

    General Discussion
    0 Votes
    5 Posts