Complete List of possible Environment Variables
I've been searching both this forum and the documentation site and I have been unable to find a list of all the possible environment variables that can be passed to NodeBB on startup.
Some of them can be found here:
This config.json documentation is here: https://docs.nodebb.org/en/latest/configuring/config.html
Can somebody please provide the complete list?
These are the variables I know of because I'm using them:
url=http://localhost:4567/forumUsed to tell NodeBB where to run, also to define a subfolder.
defaultTheme: Override default (Persona) theme. This has to be set to the npm package name of the theme you want to default to.
database=redis|mongoUsed to define which Database to use (redis or Mongo).
redis__database=#where # is the number of the redis database to use. Note: 2 underscores between redis and database.
- For these replace
- Mongo Only:
On that note, a fully written out "demo"
config.jsonfile (or even a couple of them, one for Mongo and one for Redis) would be a nice to have in the documentation article about the nodebb config (in addition to the explanations of what each entry does).
I'm willing to throw that together if others would find it useful.