Technical Support
  • Can someone please paste their full nginx.conf and cofig.json for nodebb?

    I can now seem to get it work. One day it was fine, now its not.

  • Bump Post

  • if you still have issues post your files, obviously leaving out sensitive info and one can help you further

  • @phit I need help with linking my domain. Those links didnt work. Only the IP setup works. When I try to configure my domain, it breaks. The page doesnt load.

    The domain is pointed to the server.

  • @chrispy show screen your nginx config and config.json

  • @alex-bro will do in about an hour when I get home.

  • @alex-bro Ok,

    Heres my Nginx config -->

    # For more information on configuration, see:
    #   * Official English Documentation:
    #   * Official Russian Documentation:
    user nginx;
    worker_processes auto;
    error_log /var/log/nginx/error.log;
    pid /run/;
    # Load dynamic modules. See /usr/share/nginx/README.dynamic.
    include /usr/share/nginx/modules/*.conf;
    events {
        worker_connections 1024;
    http {
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';
        access_log  /var/log/nginx/access.log  main;
        sendfile            on;
        tcp_nopush          on;
        tcp_nodelay         on;
        keepalive_timeout   65;
        types_hash_max_size 2048;
        include             /etc/nginx/mime.types;
        default_type        application/octet-stream;
        # Load modular configuration files from the /etc/nginx/conf.d directory.
        # See
        # for more information.
        include /etc/nginx/conf.d/*.conf;
    server {
        listen 80;
        location / {
            allow all;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            proxy_redirect off;
            # Socket.IO Support
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
    # Settings for a TLS enabled server.
    #    server {
    #        listen       443 ssl http2 default_server;
    #        listen       [::]:443 ssl http2 default_server;
    #        server_name  _;
    #        root         /usr/share/nginx/html;
    #        ssl_certificate "/etc/pki/nginx/server.crt";
    #        ssl_certificate_key "/etc/pki/nginx/private/server.key";
    #        ssl_session_cache shared:SSL:1m;
    #        ssl_session_timeout  10m;
    #        ssl_ciphers HIGH:!aNULL:!MD5;
    #        ssl_prefer_server_ciphers on;
    #        # Load configuration files for the default server block.
    #        include /etc/nginx/default.d/*.conf;
    #        location / {
    #        }
    #        error_page 404 /404.html;
    #            location = /40x.html {
    #        }
    #        error_page 500 502 503 504 /50x.html;
    #            location = /50x.html {
    #        }
    #    }

    heres my nodebb config -->

        "url": "",
        "secret": "Its a secret",
        "database": "redis",
        "port": 4567,
        "redis": {
            "host": "",
            "port": "6379",
            "database": "0"

    edited by pitaj, please use triple-ticks (```) for code blocks

  • By convention, nginx server configs should be put it /etc/nginx/sites_available and linked into /etc/nginx/sites-enabled. I suggest following the linked documentation above for how to set up nginx.

  • @pitaj said in Nginx:

    By convention, nginx server configs should be put it /etc/nginx/sites_available and linked into /etc/nginx/sites-enabled. I suggest following the linked documentation above for how to set up nginx.

    That;'s not entirely correct. Not every spin follows this.. wacky pattern. 🙂

  • @chrispy said in Nginx:

    I think you shuld add this place your domain name

    And i think you shuld add your nginx config in:


    and linked into


    I first time see that someone put domain info in nginx.config )))

  • judging by your configs you haven't read either docs link I had sent you, don't expect people to help you if you don't bother reading the documentation..

  • @alex-bro Thank you! It worked. @phit I tried that but it didnt work. This whole time, I had to run ./nodebb reset -p for it to take action. Idk why.

Suggested Topics

  • 1 Votes
    1 Posts

    1st of all i'm new to Nginx, and this is the 1st time i'm really setting up NodeBB. So pls forgive me when i'm asking basic dummy questions.

    Basically followed this
    using Ubunt 20. So far so good with the installation.

    The folder structure looks like this in the server:

    /home/user/abcde/index.html /root/nodebb (This might be a mistake but ...)

    Eventually index.html will have a hyperlink which links to the NodeBB forum.

    Right now the /etc/nginx/nginx.conf has a block like this, and index.html does load fine in browser

    server { server_name; location / { root /home/user/abcde; } }

    My question is: how to modify nginx.conf so it can load the NodeBB as well ?
    Again the final goal is ppl can access NodeBB from its link from index.html.

    Thanks very much for your help !

  • Time to Rethink Nginx?

    Technical Support
    0 Votes
    4 Posts

    @julian Yeah, I was thinking more of the Nginx Plux vs. Nginx Open Source duality. Too often such results in major split personality disorders wh/end up essentially forcing extortion to even get access to any reasonable docs or support.

    Nginx woes are still unclear. My concern is that if the bad actors succeed in their claims, then the license itself may be declared null and void. I can imagine this then leading to a scenario where "might makes right" and any forks then become their next targets. Crazy stuff happens in the US Federal Courts these days, particularly a certain district court in Texas, which has a well earned reputation for being very pro corporation in its rulings. Some towns thrive on industry, others eco tourism, etc. That TX town's niche is rich corporate lawyers dumping buckets of cash into the local economy.

    Anyways, I am still curious as to community reports regarding Apache deployments, as I have not used it in many years now.

    NodeBB rocks and is one of the best pieces of FOSS this ol' dinosaur had the pleasure of using. Keep up the great work.

  • Creating the nginx file

    Technical Support
    0 Votes
    6 Posts

    @qwerty Are you freakin' serious or punking us? If basics such as this are beyond you then you have absolutely no business deploying server based anything on the Internet. Much less a juicy target for crackers like a forum. Seriously irresponsible. Your name/reputation will be crap once your site is cracked and your users forever hate you. If this sounds harsh, it is because it is meant to. Moderator was being polite.

    That said:

    ESC : wq! Return/Enter

    Good luck!

  • 0 Votes
    2 Posts

    Please consult the nginx documentation:

  • NGINX config problem ?

    Technical Support
    0 Votes
    10 Posts

    @yariplus said in NGINX config problem ?:

    If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, or memcached_pass, then the special processing is performed.

    ... this explains so much 😓