Boltzmann's built-in features are configurable using environment variables.
Boltzmann's core features are configured using the following environment variables:
NODE_ENV
: dev(elopment), prod(uction), or test; consumed by are-we-devLOG_LEVEL
: one of error, warn, info, debug; defaults todebug
PORT
: the port to listen on; defaults to 5000; boltzmann always binds0.0.0.0
.SERVICE_NAME
: the name of the service to advertise to Honeycomb and others; falls back to the name of your package in package.json; this also appears in default logging
Boltzmann does not express any opinions about how you set environment variables. In development you can use dotenv with an invocation like this:
node -r dotenv/config ./boltzmann.js
Optional Boltzmann features are also configurable with either environment variables or config passed in when you attach their middleware to your app or handlers. Consult the documentation for specific features for details on how to configure them.