Give Example of config.json for Setup Nodebb
-
Please look here:
https://community.nodebb.org/post/94862And use command line to add admin privileges.
Access to admin account
There are also two cli commands for this! ./nodebb user make admin for what you and Baris described - giving an existing user administrative privileges ./n...
NodeBB Community (community.nodebb.org)
-
{ "url": "http://localhost:4568", "secret": "27b3b80b-5bcb-4bcb-bd81-da24bbfd7bzz", "database": "mongo", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "BX5x92b9Di5UdhUz", "password": "cuqppzQXMiDOV6uE", "database": "nodebb", "uri": "" }, "port": "4568" }
How can i define admin credentials into config.json?
-
@xiyohag273 said in Give Example of config.json for Setup Nodebb:
How can i define admin credentials into config.json?
As far as I know you can't define an admin user which is stored in db/datastore instead.
-
Then how can i create automated script that's deploy NodeBB in Single Click?
-
2024-04-17T07:09:34.846Z [85865] - info: [install/checkSetupFlagEnv] checking env vars for setup info...
2024-04-17T07:09:34.847Z [85865] - error: [install/checkSetupFlagEnv] required values are missing for automated setup:
2024-04-17T07:09:34.847Z [85865] - error: admin:username
2024-04-17T07:09:34.848Z [85865] - error: admin:password
2024-04-17T07:09:34.848Z [85865] - error: admin:password:confirm
2024-04-17T07:09:34.848Z [85865] - error: admin:email -
Just like NodeBB is doing it with their official hosting.
Nobbic mimick it to generate admin user/pass, look here:
https://github.com/ahwayakchih/nobbic/blob/fe987a27a30fc3755894cab55f2befde8541d57e/.container/lib/onbb_utils.sh#L114nobbic/.container/lib/onbb_utils.sh at fe987a27a30fc3755894cab55f2befde8541d57e · ahwayakchih/nobbic
🦾🍱 Nobbic helps you quickly setup a pod with NodeBB, database, NGINX, etc... containers. - nobbic/.container/lib/onbb_utils.sh at fe987a27a30fc3755894cab55f2befde8541d57e · ahwayakchih/nobbic
GitHub (github.com)
-
I found a solution.
Its working with this command:
./nodebb setup '{ "url": "http://localhost:4568", "secret": "27b3b80b-5bcb-4bcb-bd81-da24bbfd7bzz", "database": "mongo", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "bXSJ3bA23V9uX7ZD", "password": "3qQ5NRsxwaHk8DIt", "database": "nodebb2", "uri": "" }, "port": "4568", "admin:username": "admin", "admin:password": "qswaefrd", "admin:password:confirm": "qswaefrd", "admin:email": "[email protected]" }'
-
Sometime i got "command createIndexes requires authentication" even I'm passing correct credentials.
-
@xiyohag273
A common problem with a known solution?You can use stackoverflow to find more:
https://stackoverflow.com/a/65374872command createIndexes requires authentication
Getting following error I have mongodb docker running on remote system. I am able to logon through mongo console and create index While running mvnw I am getting following exception The full respon...
Stack Overflow (stackoverflow.com)
-
{ "url": "http://localhost:4571", "secret": "27b3b80b-5bcb-4bcb-bd81-da24bbfd7bsddaa", "database": "mongo", "mongo:host": "127.0.0.1", "mongo:port": "27017", "mongo:username": "2olpE5MZDNxRVBUO", "mongo:password": "4zuwX94UIX78UxFY", "mongo:database": "nodebb5", "port": "4571", "admin:username": "nodebb3", "admin:password": "qswaefrd", "admin:password:confirm": "qswaefrd", "admin:email": "[email protected]" }
Its working with this config.
-
thanks @nhl.pl for your help brother!
-
This post is deleted!