Configuration

Pinepack reads configuration from environment variables first, falling back to a pinepack.config.json file in the project root if present.

Environment variables

variabledescriptiondefault
PINEPACK_CONNECTIONSQLite path or Postgres connection string./pinepack.db
PINEPACK_RETRIESdefault retry count for new queues3
PINEPACK_BACKOFFfixed or exponentialexponential
PINEPACK_CONCURRENCYmax jobs processed in parallel per worker4

Config file

{
  "connection": "postgres://user:pass@localhost/pinepack",
  "retries": 5,
  "backoff": "exponential",
  "concurrency": 8
}

Values in pinepack.config.json are overridden by any matching environment variable at process start.