From ecd435dce11ef6bbec2f5575c1c98a794c04d41c Mon Sep 17 00:00:00 2001 From: Stavros Date: Sat, 11 Nov 2023 20:31:30 +0200 Subject: [PATCH] I am going to commit suicide... --- apps/activepieces/config.json | 18 ++++++++++++++++++ apps/activepieces/docker-compose.yml | 22 +++++++++++++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/apps/activepieces/config.json b/apps/activepieces/config.json index 8ab0c556..ea5a06fa 100644 --- a/apps/activepieces/config.json +++ b/apps/activepieces/config.json @@ -20,6 +20,24 @@ "label": "Activepieces postgres password.", "min": 32, "env_variable": "AP_POSTGRES_PASSWORD" + }, + { + "type": "random", + "label": "Activepieces api key.", + "min": 32, + "env_variable": "AP_API_KEY" + }, + { + "type": "random", + "label": "Activepieces encryption key.", + "min": 32, + "env_variable": "AP_ENCRYPTION_KEY" + }, + { + "type": "random", + "label": "Activepieces jwt secret.", + "min": 32, + "env_variable": "AP_JWT_SECRET" } ], "supported_architectures": ["arm64", "amd64"] diff --git a/apps/activepieces/docker-compose.yml b/apps/activepieces/docker-compose.yml index baa2caec..7c06bd5a 100644 --- a/apps/activepieces/docker-compose.yml +++ b/apps/activepieces/docker-compose.yml @@ -10,9 +10,25 @@ services: - activepieces-postgres - activepieces-redis environment: - - POSTGRES_DB=activepieces - - POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD} - - POSTGRES_USER=tipi + - AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js + - AP_API_KEY=${AP_API_KEY} + - AP_ENCRYPTION_KEY=${AP_ENCRYPTION_KEY} + - AP_JWT_SECRET=${AP_JWT_SECRET} + - AP_ENVIRONMENT=prod + - AP_FRONTEND_URL=http://localhost:8080 + - AP_WEBHOOK_TIMEOUT_SECONDS=30 + - AP_TRIGGER_DEFAULT_POLL_INTERVAL=5 + - AP_POSTGRES_DATABASE=activepieces + - AP_POSTGRES_HOST=activpieces-postgres + - AP_POSTGRES_PORT=5432 + - AP_POSTGRES_USERNAME=tipi + - AP_POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD} + - AP_EXECUTION_MODE=UNSANDBOXED + - AP_REDIS_HOST=redis-activpieces + - AP_REDIS_PORT=6379 + - AP_SANDBOX_RUN_TIME_SECONDS=600 + - AP_TELEMETRY_ENABLED=true + - AP_TEMPLATES_SOURCE_URL="https://cloud.activepieces.com/api/v1/flow-templates" networks: - tipi_main_network