Variables marked ❗ are required for a self-hosted production deployment.
Core
URLs, encryption keys, telemetry.
Database
Postgres / PGLite connection and pooling.
Redis & queue
Standalone, Sentinel, and the queue UI.
Execution & sandboxing
Run mode, memory, concurrency, network egress.
Limits & retention
File, log, webhook, and table limits.
File storage (S3)
Object storage for files and logs.
Email (SMTP)
Outbound mail configuration.
Authentication & SSO
Google sign-in, SCIM, cloud OAuth.
Pieces & flows
Piece syncing, polling, publish behavior.
Core
Identity and connectivity for the platform: the public URL, the keys that protect connections and tokens, and telemetry.
The default URL is the machine’s IP address. If that address isn’t reachable
from the internet, set
AP_FRONTEND_URL explicitly. For local development you
can expose the frontend port (4200) with a tunneling service such as
ngrok.
Database
Activepieces stores its data in PostgreSQL (recommended for production) or an embedded PGLite database. Set the connection with discrete fields or a singleAP_POSTGRES_URL.
Redis & queue
Redis backs the BullMQ job queue. Connect with discrete fields, a singleAP_REDIS_URL, or Sentinel. The queue UI is an optional dashboard for
inspecting jobs.
If
AP_REDIS_URL is set, all other Redis properties are ignored. The same
applies to AP_REDIS_SENTINEL_HOSTS when running in Sentinel mode.Execution & sandboxing
Controls how flows run: the sandbox mode, per-process memory and concurrency, run timeouts, and the network egress posture for user code. Read Sandboxing before changingAP_EXECUTION_MODE.
Limits & retention
Caps on file sizes, run-log size, webhook payloads, table sizes, and how long run data is kept. The Cloud values and how these interact are covered in Limits.File storage (S3)
Files emitted by steps and triggers are stored in the database or an S3-compatible bucket.Email (SMTP)
Outbound mail for invitations, notifications, and password resets.
SMTP can be configured from the platform admin screen or through these
variables. The environment variables are used only when the admin screen has
no email configuration, and only when
AP_SMTP_HOST, AP_SMTP_PORT,
AP_SMTP_USERNAME, and AP_SMTP_PASSWORD are all set. TLS is supported.