Appaloft Docsv685dc5b2b9b264bb9b5749efdc50a341b407289b
Reference

Configuration reference

Entrypoint, environment variable, and static asset override reference.

Runtime configuration controls Appaloft serve, databases, static asset directories, and self-hosted behavior.

APPALOFT_DOCS_STATIC_DIR overrides public docs static assets without replacing the Web console.

Scheduled workers are disabled by default unless noted otherwise. Enable them only on the instance that should own the recurring work.

The certificate retry scheduler is the default-on exception because it drains already accepted managed certificate work that is in retry-scheduled state. Runtime execution, runtime prune, history retention, monitoring collection, and preview cleanup workers stay disabled until an operator explicitly enables the matching APPALOFT_*_ENABLED setting.

These runners do not discover new work outside Appaloft state. They only drain due task runs, explicit runtime prune policies, retention defaults, monitoring targets with existing runtime ownership, expired active preview environments, or cleanup attempts already marked for retry.

appaloft doctor, GET /api/system/doctor, and the Web Instance page report the configured activation state, interval, batch settings, and safety mode for these workers without starting or ticking them.

VariableDefaultMeaning
APPALOFT_CERTIFICATE_RETRY_SCHEDULER_ENABLEDtrueRetries already accepted managed certificate issue/renew attempts that reached retry-scheduled state.
APPALOFT_CERTIFICATE_RETRY_SCHEDULER_INTERVAL_SECONDS300Poll interval for certificate retry.
APPALOFT_CERTIFICATE_RETRY_DEFAULT_DELAY_SECONDS300Default delay before retrying retryable certificate work.
APPALOFT_CERTIFICATE_RETRY_SCHEDULER_BATCH_SIZE25Maximum certificate retry attempts scanned per tick.
APPALOFT_SCHEDULED_TASK_RUNNER_ENABLEDfalseRuns due Resource scheduled tasks.
APPALOFT_SCHEDULED_TASK_RUNNER_INTERVAL_SECONDS60Poll interval for scheduled tasks.
APPALOFT_SCHEDULED_TASK_RUNNER_BATCH_SIZE25Maximum scheduled task attempts scanned per tick.
APPALOFT_SCHEDULED_RUNTIME_PRUNE_RUNNER_ENABLEDfalseRuns scheduled runtime capacity prune policies.
APPALOFT_SCHEDULED_RUNTIME_PRUNE_RUNNER_INTERVAL_SECONDS3600Poll interval for runtime capacity prune.
APPALOFT_SCHEDULED_RUNTIME_PRUNE_RUNNER_BATCH_SIZE25Maximum runtime prune policies scanned per tick.
APPALOFT_SCHEDULED_DEPENDENCY_BACKUP_RUNNER_ENABLEDfalseRuns scheduled dependency backup policies.
APPALOFT_SCHEDULED_DEPENDENCY_BACKUP_RUNNER_INTERVAL_SECONDS3600Poll interval for dependency backup policies.
APPALOFT_SCHEDULED_DEPENDENCY_BACKUP_RUNNER_BATCH_SIZE25Maximum dependency backup policies scanned per tick.
APPALOFT_SCHEDULED_HISTORY_RETENTION_RUNNER_ENABLEDfalseRuns retention defaults through existing history prune commands or governed retention stores.
APPALOFT_SCHEDULED_HISTORY_RETENTION_RUNNER_INTERVAL_SECONDS3600Poll interval for scheduled history retention.
APPALOFT_SCHEDULED_HISTORY_RETENTION_RUNNER_BATCH_SIZE25Maximum retention default policies scanned per tick.
APPALOFT_RUNTIME_MONITORING_COLLECTOR_RUNNER_ENABLEDfalseRuns retained runtime monitoring sample collection; currently collects active servers and runtime-owning resources/deployments/projects/environments.
APPALOFT_RUNTIME_MONITORING_COLLECTOR_RUNNER_INTERVAL_SECONDS60Poll interval for the runtime monitoring collector.
APPALOFT_RUNTIME_MONITORING_COLLECTOR_RUNNER_BATCH_SIZE25Maximum runtime monitoring targets collected per tick.
APPALOFT_TERMINAL_SESSION_ACTIVE_TTL_SECONDS3600Activity-aware active terminal session age used by terminal-session expire when no explicit cutoff is supplied.
APPALOFT_TERMINAL_SESSION_OUTPUT_RETENTION_BYTES65536Bounded in-memory terminal output tail replayed only when an active terminal transport reconnects; 0 disables replay.
APPALOFT_BETTER_AUTH_COOKIE_DOMAINunsetOptional Better Auth cookie domain; set it when a product session must be shared across same-site subdomains, for example .example.com.
APPALOFT_BETTER_AUTH_COOKIE_PREFIXBetter Auth defaultOptional Better Auth cookie prefix; keep it consistent when multiple Appaloft origins share one product session.
APPALOFT_BETTER_AUTH_TRUSTED_PROXY_HEADERSfalseAllows Better Auth to read proxy headers for external origin reconstruction when running behind a trusted reverse proxy.
APPALOFT_RUNTIME_MONITORING_RAW_RETENTION_HOURS24Default retention hours for retained monitoring raw samples.
APPALOFT_REMOTE_PGLITE_SYNC_BACKUP_RETENTION_DAYS7Recovery window for SSH remote PGlite state/backups/sync-* upload backups.
APPALOFT_REMOTE_PGLITE_SYNC_BACKUP_MAX_COUNT20Maximum count for SSH remote PGlite state/backups/sync-* upload backups; the newest backups are retained.
APPALOFT_PREVIEW_EXPIRY_CLEANUP_SCHEDULER_ENABLEDfalseScans expired active preview environments and dispatches cleanup through the preview cleanup boundary.
APPALOFT_PREVIEW_EXPIRY_CLEANUP_SCHEDULER_INTERVAL_SECONDS300Poll interval for expired preview cleanup scans.
APPALOFT_PREVIEW_EXPIRY_CLEANUP_SCHEDULER_BATCH_SIZE25Maximum expired active preview environments scanned per tick.
APPALOFT_PREVIEW_CLEANUP_RETRY_SCHEDULER_ENABLEDfalseRetries preview cleanup attempts that were recorded as retry-scheduled.
APPALOFT_PREVIEW_CLEANUP_RETRY_SCHEDULER_INTERVAL_SECONDS300Poll interval for preview cleanup retries.
APPALOFT_PREVIEW_CLEANUP_RETRY_SCHEDULER_BATCH_SIZE25Maximum preview cleanup retry attempts scanned per tick.