1. Installing
  2. Configurations

To configure activepieces, you will need to set some environment variables, There is file called docker-compose.yml at the root directory for our main repo.

When you execute the deploy.sh script in the Docker installation tutorial, it will produce these values.

VariableDescriptionDefault ValueExample
AP_JWT_SECRET❗️ Encryption key used for generating JWT tokensNonehttps://demo.activepieces.com
AP_FRONTEND_URL❗️ Url that will be used to specify redirect url and webhook url.Nonehttps://demo.activepieces.com/api
AP_POSTGRES_DATABASE❗️ The name of the PostgreSQL databaseNone
AP_POSTGRES_HOST❗️ The hostname or IP address of the PostgreSQL serverNone
AP_POSTGRES_PASSWORD❗️ The password for the PostgreSQL userNone
AP_POSTGRES_PORT❗️ The port number for the PostgreSQL serverNone
AP_POSTGRES_USERNAME❗️ The username for the PostgreSQL userNone
AP_POSTGRES_USE_SSLUse SSL to connect the postgres databasefalse
AP_REDIS_URLIf a Redis connection URL is specified, all other Redis properties will be ignored.None
AP_REDIS_USER❗️ Username to use when connect to redisNone
AP_REDIS_PASSWORD❗️ Password to use when connect to redisNone
AP_REDIS_HOST❗️ The hostname or IP address of the Redis serverNone
AP_REDIS_PORT❗️ The port number for the Redis serverNone
AP_REDIS_USE_SSLConnect to Redis with SSLfalse
AP_TELEMETRY_ENABLEDCollect telemetry informationfalse
AP_SIGN_UP_ENABLEDEnable Signed Upfalse

The frontend URL is essential for webhooks and app triggers to work. It must be accessible to third parties to send data.

Setting Webhook (Frontend URL):

The default URL is set to the machine’s IP address. To ensure proper operation, ensure that this address is accessible or specify an AP_FRONTEND_URL environment variable.

One possible solution for this is using a service like ngrok (https://ngrok.com/), which can be used to expose the frontend port (4200) to the internet.