NodeBB config



  • {
        "base_url": "http://domain.com",
        "port": "4568",
        "use_port": true,
        "secret": "xxxx",
        "bind_address": "0.0.0.0",
        "database": "redis",
        "redis": {
            "host": "127.0.0.1",
            "port": "6379",
            "password": "",
            "database": "0"
        },
        "mongo": {
            "host": "127.0.0.1",
            "port": "27017",
            "password": "",
            "database": "0"
         },
        "bcrypt_rounds": 12,
        "upload_path": "/public/uploads",
        "relative_path": ""
    }
    

    Dat coloring (heidy)


  • GNU/Linux Admin

    Hahah I edited it -- I think I made it worse

    Edit: Code type "JSON" is just no highlighting at all (drunk)


  • GNU/Linux Admin

    Haha oh good, NodeBB code highlighting supports BrainFuck:

    +++++ +++++             initialize counter (cell #0) to 10
    [                       use loop to set the next four cells to 70/100/30/10
        > +++++ ++              add  7 to cell #1
        > +++++ +++++           add 10 to cell #2 
        > +++                   add  3 to cell #3
        > +                     add  1 to cell #4
        <<<< -                  decrement counter (cell #0)
    ]                   
    > ++ .                  print 'H'
    > + .                   print 'e'
    +++++ ++ .              print 'l'
    .                       print 'l'
    +++ .                   print 'o'
    > ++ .                  print ' '
    << +++++ +++++ +++++ .  print 'W'
    > .                     print 'o'
    +++ .                   print 'r'
    ----- - .               print 'l'
    ----- --- .             print 'd'
    > + .                   print '!'
    > .                     print '\n'
    


  • @baris

    Is it a good idea for bind_address to be 0.0.0.0?


  • GNU/Linux Admin

    Should be fine -- just means your NodeBB will respond to requests on all interfaces.


  • Plugin & Theme Dev

    {
        "base_url": "http://domain.com",
        "port": "4568",
        "use_port": true,
        "secret": "xxxx",
        "bind_address": "0.0.0.0",
        "database": "redis",
        "redis": {
            "host": "127.0.0.1",
            "port": "6379",
            "password": "",
            "database": "0"
        },
        "mongo": {
            "host": "127.0.0.1",
            "port": "27017",
            "password": "",
            "database": "0"
         },
        "bcrypt_rounds": 12,
        "upload_path": "/public/uploads",
        "relative_path": ""
    }
    

    You didn't close the "http://domain.com" string, and JSON doesn't support comments.


Log in to reply
 

Suggested Topics

  • 8
  • 3
  • 5
  • 4
  • 7
| |