- Docs
- Reference
Configuration Reference
Every environment variable the Archigov image reads, and the settings an administrator changes in the product.
All variables are optional. Secrets belong in an env file, Docker or Kubernetes secrets, or your orchestrator's secret store — never in compose files or images.
#Core
| Variable | Purpose | Default |
|---|---|---|
PORT | HTTP port for the API and UI | 8080 |
DATA_DIR | Database, backups, keys, evidence packs, blobs | /data in the image; ../data from source |
SEED_DEMO | Load the demo tenant on the first boot of an empty database | true; set false in production |
APP_BASE_URL | Public URL, used for sign-in redirects and secure cookies | — |
ARCHIGOV_FIXTURES | 1 answers every Azure and Azure DevOps call from recorded fixtures (demos, CI) | unset |
#Sign-in
| Variable | Purpose | Default |
|---|---|---|
AUTH_MODE | local (trusted network; acting user chosen in the UI or sent as x-user) or entra | local |
ENTRA_TENANT_ID, ENTRA_CLIENT_ID | Entra app registration | — |
ENTRA_CLIENT_SECRET | Confidential client secret; omit for a public client with PKCE | — |
ENTRA_ROLE_MAP | Remap app-role values: from=to,from=to | — |
ENTRA_DEFAULT_ROLE | System role for users whose token carries none | none (read-only) |
SESSION_SECRET | Session-cookie signing secret | generated into DATA_DIR/keys/session.secret |
#Azure Estate
| Variable | Purpose | Default |
|---|---|---|
AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET | Service principal with Reader and Security Reader; a managed identity works without the secret | — |
AZURE_SUBSCRIPTIONS | Comma-separated subscription ids in scope | every subscription the identity can see |
See Connect Azure.
#Azure DevOps
| Variable | Purpose | Default |
|---|---|---|
ADO_ORG, ADO_PROJECT | Organisation and project | — |
ADO_PAT | Personal access token (Work Items: Read); without it the Entra identity is used | — |
ADO_HOOK_SECRET | Secret the service hook must present to POST /api/hooks/ado | — |
ADO_WIQL | Backfill query override | epics and features, not removed, changed in the last year |
See Azure DevOps.
#AI
| Variable | Purpose | Default |
|---|---|---|
AI_OPENAI_API_KEY, AI_ANTHROPIC_API_KEY, AI_MISTRAL_API_KEY, AI_OLLAMA_API_KEY | Provider keys; each also as …_FILE pointing at a secret file. Beat keys stored in Settings | — |
ARCHIGOV_SECRET_KEY | Master key for secrets stored in the database (AES-256-GCM). Any string; hashed to 256 bits | generated DATA_DIR/keys/secret.key |
LLM_BASE_URL, LLM_API_KEY, LLM_MODEL | Legacy single OpenAI-compatible gateway for every enabled feature; per-feature settings win | — |
See AI providers.
#Replication
| Variable | Purpose | Default |
|---|---|---|
LITESTREAM_URL | s3://bucket/path/app.db — command-line mode | — |
LITESTREAM_CONFIG | Path to a Litestream 0.5 YAML — config-file mode (/etc/litestream.yml is picked up automatically) | — |
LITESTREAM_ACCESS_KEY_ID, LITESTREAM_SECRET_ACCESS_KEY | Replica credentials | — |
AWS_ENDPOINT, AWS_REGION | S3-compatible endpoint and region (R2: https://<account>.r2.cloudflarestorage.com + auto; MinIO: http://minio:9000 + us-east-1) | AWS defaults |
LITESTREAM_BUCKET, LITESTREAM_PATH | Used only by the example YAML | — |
See Backups and upgrades.
#In-product Settings
Changed by the platform admin under Settings; every change is audited.
| Setting | Where | Effect |
|---|---|---|
| Tenant name | General | Shown in the product and the evidence pack |
| Collection interval | General | Minutes between scheduled collections of every configured source (default 60) |
| Home regions | General | Regions not flagged on the Applications page (default uksouth, ukwest, global; empty flags nothing) |
| Evidence control map | General | JSON map from source keys (defender:<slug>, policy:<name>) to control names |
| Data & backups | General | Last backup, back up now, evidence-signing public key |
| Sources | Sources | Test and sync Azure, Defender, Azure Policy, Azure DevOps, demo |
| Import | Import | Starter packs, CSV and ArchiMate imports |
| Users and access | Users & Access | Users, system roles, the platform admin flag |
| AI | AI | Providers, keys, per-feature enablement |
| Demo tools | Demo Tools | Load, re-sync or perturb the demo estate |
Something unclear or out of date? Write to hello@archigov.com or open an issue on GitHub.