Skip to content

Environment variables

Every setting is an environment variable. Bullship reads them at start; change one and restart. A value it can’t use, such as BULLSHIP_HISTORY_DAYS=120, stops it with one line saying why:

Bullship could not start: reading the settings failed: BULLSHIP_HISTORY_DAYS must be a whole number from 0 to 90
Variable Default What it does
REDIS_URL One connection, named “Default”. Ignored when any BULLSHIP_REDIS_URL_<NAME> is set
BULLSHIP_PREFIX bull BullMQ key prefix for REDIS_URL
BULLSHIP_GROUP_SEP, BULLSHIP_GROUP_DEPTH ., 1 Queue grouping for REDIS_URL (see below)
BULLSHIP_REDIS_URL_<NAME> A connection named after <NAME>; repeat for each Redis
BULLSHIP_REDIS_URL_<NAME>_PREFIX bull BullMQ key prefix for that connection
BULLSHIP_REDIS_URL_<NAME>_GROUP_SEP . How the Queues page groups that connection’s queues: . : - _ /, or off
BULLSHIP_REDIS_URL_<NAME>_GROUP_DEPTH 1 Group by the first 1 or 2 parts of the queue name
BULLSHIP_CONNECTIONS_EDITABLE true false stops the app from adding or removing connections
BULLSHIP_SECRET_KEY Encrypts saved connection URLs and alert destinations. Use a long random key (openssl rand -base64 32); its salt is kept in secret-salt in the data directory
BULLSHIP_BLOCK_PRIVATE_ADDRESSES false true stops connections and alert destinations added in the app from reaching loopback, private, link-local (cloud metadata) and other non-public addresses

See Connections for examples.

Variable Default What it does
BULLSHIP_AUTH true false turns sign-in off and makes everyone an admin. viewer turns it off with everyone a viewer
BULLSHIP_AUTH_SECRET generated Signs sessions. When unset, a random one is saved as auth-secret in the data directory
BULLSHIP_URL from each request The address people open, such as https://bullship.example.com. An https URL makes session cookies Secure and turns on HSTS. Links in alerts and password reset emails use it
BULLSHIP_ALLOWED_HOSTS Host names people open Bullship at besides BULLSHIP_URL’s, comma-separated; * allows any (see Security)
BULLSHIP_TRUSTED_PROXIES Addresses or CIDRs of your reverse proxies, comma-separated, so sign-in rate limits count the client address they forward
BULLSHIP_METRICS_TOKEN The bearer token Prometheus sends to /api/metrics
Variable Default What it does
BULLSHIP_SMTP_URL An SMTP server, smtp://user:pass@host:587 or smtps://user:pass@host:465. Turns on email alert destinations and, with BULLSHIP_URL, password reset by email
BULLSHIP_SMTP_FROM Bullship <bullship@<smtp host>> The From address of Bullship’s email
Variable Default What it does
BULLSHIP_DATA_DIR ~/.bullship, /data in the image Where accounts, saved connections, alerts, metrics history and the activity log are kept (see Data and backups)
BULLSHIP_HISTORY_DAYS 30 Days of metrics history to keep, 1 to 90 (90 adds a 90-day range); 0 turns it off
BULLSHIP_LOG requests prints one line per request
PORT 3200 The port to listen on
HOST 0.0.0.0 The address to listen on

The Queues page groups queues by the start of their names, so billing.invoices and billing.refunds sit under billing. _GROUP_SEP sets the separator and _GROUP_DEPTH how many parts make the group: with : and depth 2, acme:billing:invoices groups under acme:billing. off lists every queue on its own. Admins can also change grouping per connection in Settings › Queue grouping.