Every STATER_ environment variable in one place, with its default and a link to the page that explains it.
Stater is configured with environment variables that start with STATER_. Settings that hold a password can also be read from a file (…_FILE), which is preferred. A setting Stater cannot read stops the server at start with a sentence naming it.
Where they go: the Linux packages keep them in /etc/stater/stater.env, written by stater configure (every setting is explained in /usr/share/stater/stater.env.example); the compose bundle keeps them in .env (see .env.example); the Helm chart sets them from its values and Secret. Each row links to the page that explains the setting.
Server#
| Variable |
Default |
What it sets |
STATER_DATABASE_URL |
|
The PostgreSQL URL. pool_max_conns in it sets how many connections each server opens (8 by default). Architecture |
STATER_PUBLIC_URL |
|
The address people use, such as https://shop.example.com. Directory sign-in and accounting connections build their redirect URIs from it. Directory sign-in, Connecting accounting software |
STATER_LISTEN |
127.0.0.1:8080 with the Linux packages |
Where the server listens. Linux packages |
STATER_TRUSTED_PROXIES |
loopback |
The proxies whose X-Forwarded-For is believed, so sign-in limits count each real client. Linux packages, Docker Compose |
STATER_METRICS_TOKEN_FILE |
|
A bearer token for /metrics. Without it, the Linux packages answer /metrics only on this machine. Monitoring |
STATER_LICENCE_FILE |
|
A licence to install at start, when it runs longer than the one installed. Plans and licences |
STATER_LICENCE_REVOCATIONS_FILE |
|
A revocation list to install at start, when it is newer. Plans and licences |
STATER_VERSION |
|
The compose bundle's image version; ./install.sh --upgrade moves it. Docker Compose |
Secrets and private networks#
| Variable |
Default |
What it sets |
STATER_SECRET_KEY, STATER_SECRET_KEY_FILE |
|
The key that seals saved integration passwords. Every server that uses the same database needs the same key. Secrets |
STATER_SECRET_KEY_OLD |
|
The previous key, while rotating. Secrets |
STATER_DATA_DIR |
/var/lib/stater with the Linux packages |
Without a key, a single server makes its own in this folder. Secrets |
STATER_PRIVATE_CONNECTORS |
true |
false turns "On my own network" off for the whole server. Secrets |
STATER_WEBHOOK_ALLOW_PRIVATE |
|
Lets webhooks reach private and loopback addresses for testing. Webhooks |
Database and backups#
| Variable |
Default |
What it sets |
STATER_DB_ADMIN_URL, STATER_DB_ADMIN_URL_FILE |
|
The admin connection stater db init uses. Database and backups |
STATER_PG_DUMP, STATER_PG_RESTORE |
the ones on the PATH |
The PostgreSQL client tools for backups and restores. Linux packages |
STATER_BACKUP_DIR |
|
A folder on the server for backups. Database and backups |
STATER_BACKUP_SCHEDULE |
02:30 |
The times of day backups run, in the company's time zone (up to six). Database and backups |
STATER_BACKUP_KEY, STATER_BACKUP_KEY_FILE |
derived from STATER_SECRET_KEY |
The key that encrypts backups. Database and backups |
STATER_BACKUP_S3_* |
|
An S3-compatible destination; set this way, it locks the screen. /usr/share/stater/stater.env.example lists each one. Database and backups |
STATER_BACKUP_WORKER |
on |
false stops this server making backups. Database and backups |
STATER_BACKUP_ALLOW_PRIVATE |
|
The S3 endpoint is on a private or loopback address. Database and backups |
Email#
| Variable |
Default |
What it sets |
STATER_SMTP_HOST |
|
The mail server. Setting it sets email up from the environment. Email |
STATER_SMTP_PORT |
587, 465 for tls, 25 for none |
Email |
STATER_SMTP_SECURITY |
starttls |
starttls, tls or none. Email |
STATER_SMTP_USERNAME |
|
Empty: no sign-in. Email |
STATER_SMTP_PASSWORD, STATER_SMTP_PASSWORD_FILE |
|
The file is preferred. Email |
STATER_SMTP_FROM |
|
Required with a host. Email |
STATER_SMTP_FROM_NAME |
the company name |
Email |
STATER_SMTP_ALLOW_PRIVATE |
false |
The mail server is on a private or loopback address. Email |
STATER_SMTP_SETUP |
|
Without a host: admin or later. Email |
AI assistant#
| Variable |
Default |
What it pins |
STATER_AI_BASE_URL |
|
The API address. AI assistant |
STATER_AI_TOKEN, STATER_AI_TOKEN_FILE |
|
The token, never written to the database. AI assistant |
STATER_AI_CHAT_MODEL |
|
The chat model. AI assistant |
STATER_AI_EMBED_MODEL |
|
The embeddings model. AI assistant |
STATER_AI_ALLOW_PRIVATE |
|
The provider is on a private or loopback address, over http too. AI assistant |
Security, finance and accounting#
| Variable |
Default |
What it sets |
STATER_THREAT_ENFORCE |
true |
false makes block act as monitor on this server. SIEM and threat intelligence |
STATER_FINANCE_QUERY_TIMEOUT |
20s |
How long one finance page or report may take (2s to 5m). Finance |
STATER_ACCOUNTING_SYNC |
true |
Run the accounting sync job on this server. Accounting reference |
STATER_ACCOUNTING_SYNC_EVERY |
15m |
How often the job looks for closed days and retries (5m to 6h). Accounting reference |
STATER_ACCOUNTING_HTTP_TIMEOUT |
5m |
The longest one Business Central call may take (1m to 7m). Accounting reference |
STATER_ACCOUNTING_RECHECK_DAYS |
62 |
How far back each run looks for days that changed after sending (7 to 400). Accounting reference |
STATER_ACCOUNTING_LOG_KEEP_DAYS |
90 |
How long the sync log is kept (7 to 3650). Accounting reference |
STATER_ACCOUNTING_EXPORT_MAX_DAYS |
92 |
The most days one export covers (1 to 731). Accounting reference |
Counter layouts have no settings or environment variables (Counter layouts).