Skip to main content

Environment Variables

AURCache can be configured using the following environment variables:

Settings precedence

Most settings can also be set in the UI — globally on the Settings page or per-package on the package's Settings page. When the same setting is configured in multiple places, the resolution order is, from highest to lowest priority:

  1. Per-package setting — explicit user intent for one package always wins. This lets you override an env-imposed baseline for a single package (e.g. give one heavy build more memory) without touching the deployment defaults.
  2. Environment variable — the admin's deploy-time override of the global default. Locks the global Settings page tile, but does not prevent per-package overrides.
  3. Global setting — UI-set baseline stored in the database.
  4. Static default — built-in fallback (the "Default" column below).

The UI badges reflect the source: (default), (inherited) (= global), (inherited from env), or no badge when this scope owns the value.

Database Configuration

VariableTypeDescriptionDefault
DB_TYPE(POSTGRESQL| SQLITE)Type of Database (SQLite, PostgreSQL)SQLITE
DB_USERStringPOSTGRES Username (ignored if sqlite)null
DB_PWDStringPOSTGRES Password (ignored if sqlite)null
DB_HOSTStringPOSTGRES Host (ignored if sqlite)null
DB_NAMEStringDatabase name'db.sqlite' or 'postgres'

General Settings

VariableTypeDescriptionDefault
VERSION_CHECK_INTERVALIntegerInterval in seconds for checking package versions3600
AUTO_UPDATE_SCHEDULEString (CRON)Auto update schedule in cronjob syntax with seconds (null to disable)null
BUILD_ARTIFACT_DIRStringpkg share directory between aurcache container and build containersnull
LOG_LEVELStringLog levelINFO
MAX_CONCURRENT_BUILDSIntegerMax concurrent builds1
CPU_LIMITIntegerCPU limit of build container in milli CPUs0
MEMORY_LIMITIntegerMemory limit of build container in MB-1
JOB_TIMEOUTIntegerJob timeout for build in Seconds3600
SECRET_KEYString>32Byte Random String for singing cookiesRandom

Advanced Settings

VariableTypeDescriptionDefault
BUILDER_IMAGEStringDocker image of Builder which spawns with every build jobghcr.io/lukas-heiligenbrunner/aurcache-builder:latest