Skip to content

Environment variables

AVACOM is configured with environment variables, set in the Compose files or in the --env-file they read. This page lists the ones an installer is likely to touch. Each provider also has settings of its own, set on the Providers page, not here.

Variable Default What
AVACOM_ENV development production turns on every safety check: each service refuses to start with a missing or weak secret or an unsafe setting
AVACOM_PUBLIC_URL – The address users open, for example https://avacom.bank.local (production Compose)
AVACOM_DOMAIN – The DNS name Caddy gets a certificate for (production Compose)
AVACOM_API_URL http://<host>:<port> The API’s public address; the webhook addresses shown to tools are built from it. Production Compose sets ${AVACOM_PUBLIC_URL}/backend
AVACOM_PLATFORM_URL https://app.avacom.example The app’s address, used in links inside sent RCAs and emails. Always set it
DATABASE_CONNECTION_STRING sqlite:///./avacom.db (Compose: SQLite in /state) The database. Production Compose uses its Postgres
SECRET_MANAGER_TYPE FILE Where provider credentials are stored: FILE, DB, VAULT, AWS, GCP or K8S
SECRET_MANAGER_DIRECTORY ./ (/state in the containers) The folder for FILE secrets and the first admin password
AVACOM_CORS_ALLOWED_ORIGINS * Comma-separated origins allowed to call the API. Production refuses *
AVACOM_ENABLE_API_DOCS false Serve the API’s own reference at /docs in production
LOG_LEVEL INFO Backend logging
Variable Default What
AUTH_TYPE NOAUTH DB, OAUTH2PROXY, OKTA, ONELOGIN or NOAUTH; set it in capitals, on the backend and the frontend. See Users, API keys and SSO
AVACOM_JWT_SECRET – Signs sign-in tokens with AUTH_TYPE=DB. Required, at least 32 characters
AVACOM_JWT_TTL_SECONDS 43200 How long a sign-in token lasts (12 hours)
NEXTAUTH_SECRET random at each start The frontend’s session secret. Without it, everyone is signed out at every restart. Required in production
NEXTAUTH_URL – The address users open, for the frontend
AVACOM_DEFAULT_USERNAME avacom The first administrator
AVACOM_DEFAULT_PASSWORD random, written to initial-admin-password Its password, at least 12 characters
AVACOM_DEFAULT_API_KEYS – Keys to create at start: name:role:secret,...
AVACOM_MIN_PASSWORD_LENGTH 12 The shortest password allowed
AVACOM_LOGIN_THROTTLE_WINDOW_SECONDS 900 The window for counting failed sign-ins
AVACOM_LOGIN_MAX_FAILURES_PER_CLIENT, ..._PER_USER 5, 20 Failed sign-ins allowed in the window, per username and address, and per username
AVACOM_OAUTH2_PROXY_SHARED_SECRET (backend), AVACOM_PROXY_SHARED_SECRET (frontend) – The same secret under two names: proves a request came through nginx. Required with SSO, at least 32 characters
AVACOM_OAUTH2_PROXY_ADMIN_ROLES, ..._NOC_ROLES, ..._WEBHOOK_ROLES – Identity-provider groups for each role. The SSO Compose file sets them from ADMIN_GROUPS, NOC_GROUPS, WEBHOOK_GROUPS
AVACOM_OAUTH2_PROXY_USER_HEADER, ..._ROLE_HEADER backend: x-forwarded-email, x-forwarded-groups Headers that carry the user and the groups. The frontend reads the same names but defaults the user header to x-forwarded-user, with the email in AVACOM_OAUTH2_PROXY_EMAIL_HEADER (x-forwarded-email)

See AI model and key for how these work together.

Variable Default What
OPENAI_API_KEY – Turns the AI on. Without it, analyses collect evidence only
OPENAI_BASE_URL OpenAI An OpenAI-compatible endpoint, for a self-hosted model
OPENAI_MODEL_NAME gpt-4o-2024-08-06 The model for every AI feature
AVACOM_RCA_MODEL OPENAI_MODEL_NAME The model for the RCA only
AVACOM_RCA_AI true false never calls the AI for the RCA
AVACOM_AI_ALLOWED_NETWORKS (none) Loopback networks a tenant’s AI service may sit on, for example 127.0.0.1/32,::1/128 (which addresses)
AVACOM_AI_TESTS_PER_MINUTE 5 Test connection presses per tenant a minute, in each server process
AVACOM_AI_DISABLE_TEMPERATURE false Leave out temperature, for models that refuse it
AVACOM_INCIDENT_ANALYSIS_AUTO true Analyze new incidents by themselves
AVACOM_INCIDENT_ANALYSIS_DELAY_S 60 How long after an incident opens
AVACOM_REANALYSIS_AUTO as AVACOM_INCIDENT_ANALYSIS_AUTO Analyse incidents again as they grow (Re-analysis)
AVACOM_REANALYSIS_COOLDOWN_MIN (none) Every tenant’s cooldown between re-analyses, in place of its own
AVACOM_RCA_MAX_PER_HOUR 30 AI analyses per hour, automatic and manual together
AVACOM_RCA_WINDOW_BEFORE_MINUTES, ..._AFTER_MINUTES 60, 5 The evidence window around the incident’s alerts
AVACOM_BLAST_RADIUS_MAX_HOPS 6 How far the incident’s Impact tab walks the Service Topology (1–20)
AVACOM_BLAST_RADIUS_MAX_SERVICES 500 The most services the Impact API lists in each direction, the nearest first (1–5000)
AVACOM_RCA_MAX_LEAD_MINUTES 10 How long before a later anomaly an earlier one may end and still be linked into a cause chain
AVACOM_RCA_DRILLDOWN true Let the AI ask for more evidence while it writes
AVACOM_RCA_DRILLDOWN_ROUNDS, _CALLS, _RECORDS, _ROUND_TOKENS, _SECONDS 3, 4, 400, 8000, 150 The drill-down’s limits: rounds, queries a round, records a round, tokens of answers a round, seconds in all
AVACOM_RCA_TOKEN_BUDGET 200000 Tokens for all of one RCA’s AI requests
AVACOM_RCA_DRILLDOWN_NAMED_HOSTS false Also query hosts that are only named inside log lines
Variable Default What
AVACOM_FIX_FOUR_EYES true The preparer and editors of a fix may not approve it. Production refuses false
AVACOM_FIX_SIMULATE false (true in docker-compose.yml) Pretend to run fix commands on hosts without an SSH provider. Demo data only; production refuses it
AVACOM_REPORT_FOUR_EYES true The authors of an incident report version may not approve it. Production refuses false
AVACOM_REPORT_AI true Offer Draft with AI on the incident report when an AI service is set up
AVACOM_FIX_SSH_WITHOUT_SIGN_IN false Run SSH fixes even without sign-in. Production refuses it
AVACOM_RCA_MAX_SENDS_PER_HOUR 60 RCA sends per hour
AVACOM_RCA_EMAIL_DOMAINS (any) Domains email routes may send to
Variable Default What
AVACOM_OUTBOUND_BLOCK_PRIVATE_NETWORKS false Refuse provider and workflow calls to private addresses. Loopback and link-local addresses are always refused, unless listed below
AVACOM_OUTBOUND_ALLOWED_HOSTS – Hosts allowed despite every rule above, for example MSN’s
AVACOM_ALLOW_LOCAL_EXECUTION_PROVIDERS false Allow Bash and Python workflow steps to run on the API’s host. Leave it off unless every workflow author may run commands there
HTTP_PROXY, HTTPS_PROXY – A proxy for outgoing calls
Variable Default What
PUSHER_APP_ID, PUSHER_APP_KEY, PUSHER_APP_SECRET, PUSHER_HOST, PUSHER_PORT – How the backend reaches the live-update server. Live updates are off if the ID, key or secret is missing
REALTIME_APP_ID, REALTIME_APP_KEY, REALTIME_APP_SECRET – The live-update server’s own settings; the secret must be at least 32 characters
REALTIME_ALLOWED_ORIGINS any Browser origins allowed to connect
REDIS, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD false, localhost, 6379, – Background workers on a Redis-compatible queue (docker-compose-with-arq.yml)
Variable Default What
AVACOM_MCP_CALLS_PER_MINUTE 60 Tool calls per API key (or person) a minute, counted across server processes (AI assistants)
AVACOM_MCP_ALLOWED_ORIGINS (none) Browser origins allowed to call /mcp, comma-separated; requests without an Origin header are not affected
AVACOM_MCP_ALLOW_NOAUTH false Serve /mcp although AUTH_TYPE=NOAUTH, where every caller is an administrator: only on a test install
Variable Default What
AVACOM_TEAMS_BOT_APP_ID, AVACOM_TEAMS_BOT_APP_PASSWORD, AVACOM_TEAMS_BOT_TENANT_ID – The bot’s Entra app registration: client ID, client secret and the bank’s tenant ID. Without all three the bot is off (Microsoft Teams bot)
AVACOM_TEAMS_BOT_REQUESTS_PER_MINUTE 300 Requests to /teams/messages with a valid Bot Connector token a minute, per API process
AVACOM_TEAMS_BOT_ACTIONS_PER_MINUTE 10 Button presses per Teams user a minute
AVACOM_TEAMS_BOT_QUESTIONS_PER_HOUR 20 Questions to the assistant per Teams user an hour; 0 turns asking off
AVACOM_TEAMS_BOT_SIGN_IN_MAX_AGE_DAYS 14 With OAuth2 Proxy sign-in, how old a role the bot trusts may be; 0: any age
AVACOM_TEAMS_BOT_APPROVER_SIGN_IN_MAX_AGE_HOURS 24 The same for approving and rejecting fixes from Teams; 0: any age
AVACOM_TEAMS_BOT_SERVICE_HOSTS – More Bot Connector hosts the bot may call, besides smba.trafficmanager.net
Variable Default What
API_URL – The API’s address as the frontend server reaches it, for example http://avacom-backend:8080
AVACOM_DOCS_URL https://docs.avacom.example Where the menu’s Docs link and help links point: set it to these docs’ address
HIDE_NAVBAR_DEDUPLICATION, HIDE_NAVBAR_WORKFLOWS, … – Hide entries of the Noise reduction menu for everyone
ALERT_SIDEBAR_FIELDS – Which fields the alert panel shows

MSN has its own settings: see Run the MSN hub.