Environment variables
Complete reference for the Server container, Go Worker and Host Agent. Defaults match the current code / .env.example files.
Where to set themServer: Compose
environment /
.env. Worker and Agent: process env or a
.env file next to the binary (or in the working directory). See also
Workers and
Agents for binary installs.
Server (akeb/monitoring)
Core
| Variable | Default | Description |
TZ | UTC | Timezone |
PASSWORD_SALT | — | Required salt for password hashing — use a long random string |
NGINX_PORT | 80 | Published HTTP port in Compose samples |
APP_DEBUG | false | Application debug mode |
APP_SIGNIN_ACTIVE | true | Allow email/password sign-in |
APP_SIGNUP_ACTIVE | true | Allow self-registration |
APP_BASE_URL | empty | Public absolute URL (scheme+host) for redirects/emails; empty = detect from request |
TRUST_PROXY | false | Trust X-Real-IP / X-Forwarded-* only behind a known reverse proxy |
DESIRED_AGENT_VERSION | empty | Fallback target agent version (GitHub tag) if not set in Admin → Servers |
DESIRED_WORKER_VERSION | empty | Fallback target worker version if not set in Admin → Workers |
MySQL
| Variable | Default | Description |
MYSQL_HOST | localhost | MySQL host |
MYSQL_PORT | 3306 | MySQL port |
MYSQL_USERNAME | root | MySQL user |
MYSQL_PASSWORD | — | MySQL password |
MYSQL_DB_NAME | monitoring | Database name |
MYSQL_DEBUG | false | SQL debug logs |
MYSQL_DONT_USE_SLAVE | true | Disable read replica |
MYSQL_SLAVE_HOST | MYSQL_HOST | Replica host |
MYSQL_SLAVE_PORT | MYSQL_PORT | Replica port |
MYSQL_SLAVE_USERNAME | MYSQL_USERNAME | Replica user |
MYSQL_SLAVE_PASSWORD | MYSQL_PASSWORD | Replica password |
MYSQL_SLAVE_DB_NAME | MYSQL_DB_NAME | Replica database |
Memcached
| Variable | Default | Description |
MEMCACHED_HOST | empty | Memcached host (required in Compose: memcached) |
MEMCACHED_PORT | 11211 | Memcached port |
SMTP
| Variable | Default | Description |
SMTP_HOST | empty | SMTP host (password reset, mail) |
SMTP_PORT | 25 | SMTP port |
SMTP_USERNAME | empty | SMTP user |
SMTP_PASSWORD | empty | SMTP password |
SMTP_TLS | false | STARTTLS |
SMTP_SSL | false | Implicit SSL |
OpenID Connect
| Variable | Default | Description |
OPENIDCONNECT_PROVIDER | empty | OIDC provider URL |
OPENIDCONNECT_CLIENT_ID | empty | Client id |
OPENIDCONNECT_CLIENT_SECRET | empty | Client secret |
OPENIDCONNECT_BUTTON | empty | Login button label |
OPENIDCONNECT_SCOPE | email profile openid | Scopes |
OPENIDCONNECT_REGISTER | true | Allow auto-register on first login |
OAuth
| Variable | Default | Description |
OAUTH_CLIENT_ID | empty | OAuth client id |
OAUTH_CLIENT_SECRET | empty | Client secret |
OAUTH_AUTHORIZATION_ENDPOINT | empty | Authorize URL |
OAUTH_TOKEN_ENDPOINT | empty | Token URL |
OAUTH_USERINFO_ENDPOINT | empty | Userinfo URL |
OAUTH_BUTTON | empty | Login button label |
OAUTH_SCOPE | self_profile | Scopes |
OAUTH_REGISTER | true | Allow auto-register |
Telegram (server-side bot / proxy)
| Variable | Default | Description |
TELEGRAM_BOT_TOKEN | empty | Optional global bot token (channels can also store their own) |
TELEGRAM_PROXY_SOCKS5 | true | Use SOCKS5 for Telegram proxy |
TELEGRAM_PROXY_HOST | empty | Proxy host |
TELEGRAM_PROXY_PORT | 8080 | Proxy port |
TELEGRAM_PROXY_USERNAME | empty | Proxy user |
TELEGRAM_PROXY_PASSWORD | empty | Proxy password |
Worker (monitoring-worker-go)
| Variable | Default | Description |
SERVER_HOST | — | Required. Monitoring base URL (trailing slash added if missing) |
WORKER_KEY_HASH | — | Required. Key from Admin → Workers |
TZ | UTC | Timezone |
PROTOCOL_VERSION | 2.0 | Must be 2.0+ (server ≥ v2.1) |
WORKER_THREADS | 10 | Concurrent check threads |
JOBS_GET_TIMEOUT | 30 | Seconds between job polls |
LOOP_TIMEOUT | 200000 | Main loop delay (microseconds) |
RESPONSE_SEND_TIMEOUT | 5 | Seconds between result POSTs |
LOGS_WRITE_TIMEOUT | 10 | Seconds between log flushes |
PROXY_HOST | empty | Optional outbound proxy for checks |
PROXY_TYPE | empty | Proxy type (HTTP / SOCKS5 as in cURL) |
WORKER_VERSION | ldflags / local | Reported version (env overrides build ldflags) |
DEBUG | false | Verbose worker logs |
CURL_DEBUG | false | HTTP check request logging |
DOCKER_DEBUG | false | Docker Engine API debug lines |
IMMEDIATE_ERROR_RETRY | false | true = retry failed job on next loop tick (PHP-compatible); false = wait repeat_seconds |
AUTO_UPDATE | true | Apply data.update from server (binary replace) |
UPDATE_FROM_GITHUB | true | Allow only github.com/AKEB/monitoring-worker-go release URLs |
In Docker prefer image tags and set AUTO_UPDATE=false.
Agent (monitoring-agent)
| Variable | Default | Description |
SERVER_HOST | — | Required. Monitoring base URL |
AGENT_KEY_HASH | — | Required. Key from Admin → Servers |
TZ | UTC | Timezone |
REPORT_INTERVAL_SEC | 30 | Push interval (clamped 15–600) |
AGENT_VERSION | ldflags / local | Reported version |
DEBUG | false | Verbose stderr |
COLLECT_DOCKER | true | Docker container inventory |
COLLECT_PROXMOX | true | Proxmox VE QEMU/LXC inventory |
COLLECT_AUTH | true | Auth log delta (SSH/sudo) |
COLLECT_PROCESSES | true | Process snapshot |
COLLECT_LISTENERS | true | TCP/UDP listening sockets |
PROCESS_TOP_N | 20 | Top processes by CPU (5–100) |
AUTO_UPDATE | true | Honor update payload from report API |
UPDATE_FROM_GITHUB | true | Allow only github.com/AKEB/monitoring-agent release URLs |