Skip to content

Commit 98d6ffe

Browse files
authored
Merge pull request #1255 from Websoft9/update-activepieces-27e4f69c
Update activepieces
2 parents af9f941 + 2e0c085 commit 98d6ffe

File tree

12 files changed

+69
-198
lines changed

12 files changed

+69
-198
lines changed

apps/activepieces/.env

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
1-
W9_REPO=wordpress
2-
W9_DIST=community
3-
W9_VERSION=latest
4-
5-
W9_POWER_PASSWORD=1PrMxExC45LsCT
1+
W9_REPO=ghcr.io/activepieces/activepieces
2+
W9_DIST='community'
3+
W9_VERSION='0.39.2'
4+
W9_POWER_PASSWORD='fm#rIkLRk7MXFs6V'
65

76
# Environments which for user settings when create application
87
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
9-
W9_HTTP_PORT_SET=9001
10-
# W9_HTTPS_PORT_SET=9002
11-
# W9_DB_PORT_SET=3306
12-
# W9_SSH_PORT_SET=23
13-
W9_KEY_SET="dfsjdkjf77xjxcjcj"
8+
W9_HTTP_PORT_SET='9001'
149

1510
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
16-
17-
W9_ID=activepieces
18-
19-
# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
20-
# Some container (e.g teleport) need HTTPS access, then need to set this pra
11+
W9_ID='activepieces'
2112
W9_HTTP_PORT=80
22-
W9_HTTPS_PORT=81
23-
24-
W9_LOGIN_USER=admin
25-
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
26-
# this password can also use password file
27-
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
28-
W9_ADMIN_PATH="/wp-login"
2913

3014
# Container name's suffix must use one of the value
31-
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
32-
33-
# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT
34-
# If have protocols, should be set it in the APP's ENV
35-
W9_URL=internet_ip:$W9_HTTP_PORT_SET
36-
# modifies W9_URL on init when it is true
37-
W9_URL_REPLACE=true
15+
W9_DB_EXPOSE="postgresql"
16+
W9_URL='internet_ip:$W9_HTTP_PORT_SET'
3817

3918
W9_NETWORK=websoft9
4019

4120
#### ----------------------------------------------------------------------------------------- ####
4221

22+
AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js
4323

44-
# Below environment is created by apphub
24+
## Random Long Password (Optional for community edition)
25+
AP_API_KEY=2e432eeb523308a35a5c1131081547a6db7aaffb14daeda2401e659645ff172aaf02ea803e68d559fafabc4ee37a1a6e92e87f3c567ef7a5b7efd8d626adb0cd
26+
27+
## 256 bit encryption key, 32 hex character
28+
AP_ENCRYPTION_KEY=62d9672ed7c55a9bf31b34149c07c9ad
4529

46-
#W9_NAME=""
47-
#W9_RCODE=""
30+
## JWT Secret
31+
AP_JWT_SECRET=094d670880695794b4bf6c7556e63948ec02a5a70170e541897fd6bfebedbe5b
32+
33+
AP_ENVIRONMENT=prod
34+
AP_FRONTEND_URL=$W9_URL
35+
AP_WEBHOOK_TIMEOUT_SECONDS=30
36+
AP_TRIGGER_DEFAULT_POLL_INTERVAL=5
37+
38+
AP_EXECUTION_MODE=UNSANDBOXED
39+
40+
AP_FLOW_TIMEOUT_SECONDS=600
41+
AP_TELEMETRY_ENABLED=true
42+
AP_TEMPLATES_SOURCE_URL="https://cloud.activepieces.com/api/v1/flow-templates"
43+
44+
45+
# Below environment is created by apphub

apps/activepieces/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/activepieces/Notes.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
# Appname
2-
## FAQ
1+
# Activepieces
2+
generate the keys:
3+
4+
AP_API_KEY : ```openssl rand -hex 64```
5+
AP_JWT_SECRET : ```openssl rand -hex 32```
6+
ENCRYPTION_KEY: ```openssl rand -hex 16```

apps/activepieces/README.jinja2

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,49 @@
1-
# image,docs: https://hub.docker.com/_/wordpress/
2-
31
services:
4-
5-
wordpress:
2+
activepieces:
63
image: $W9_REPO:$W9_VERSION
74
container_name: $W9_ID
85
restart: unless-stopped
9-
#This is for access host from container
10-
# extra_hosts: ["host.docker.internal:host-gateway"]
11-
# command: |
12-
# /bin/bash -c "ping -c 3 host.docker.internal"
13-
logging:
14-
driver: "json-file"
15-
options:
16-
max-file: "5"
17-
max-size: 10m
18-
deploy:
19-
resources:
20-
limits:
21-
memory: 5g
22-
cpus: '0.7'
236
ports:
247
- $W9_HTTP_PORT_SET:80
8+
depends_on:
9+
- postgres
10+
- redis
2511
env_file: .env
12+
environment:
13+
AP_POSTGRES_HOST: $W9_ID-postgresql
14+
AP_POSTGRES_DATABASE: activepieces
15+
AP_POSTGRES_PORT: 5432
16+
AP_POSTGRES_USERNAME: postgres
17+
AP_POSTGRES_PASSWORD: $W9_POWER_PASSWORD
18+
AP_REDIS_HOST: $W9_ID-redis
19+
AP_REDIS_PORT: 6379
2620
volumes:
27-
- wordpress:/var/www/html
28-
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
21+
- activepieces_cache:/usr/src/app/cache
2922

30-
mariadb:
31-
image: mariadb:10.4
32-
container_name: $W9_ID-mariadb
23+
postgres:
24+
image: postgres:14.4
25+
container_name: $W9_ID-postgresql
3326
restart: unless-stopped
34-
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
35-
volumes:
36-
- mysql_data:/var/lib/mysql
3727
environment:
38-
MYSQL_DATABASE: $W9_ID
39-
MYSQL_USER: $W9_ID
40-
MYSQL_PASSWORD: $W9_POWER_PASSWORD
41-
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
28+
POSTGRES_DB: activepieces
29+
POSTGRES_PASSWORD: $W9_POWER_PASSWORD
30+
POSTGRES_USER: postgres
31+
volumes:
32+
- postgres_data:/var/lib/postgresql/data
33+
34+
redis:
35+
image: redis:7.0.7
36+
container_name: $W9_ID-redis
37+
restart: unless-stopped
38+
volumes:
39+
- redis_data:/data
4240

4341
volumes:
44-
wordpress:
45-
mysql_data:
46-
42+
postgres_data:
43+
redis_data:
44+
activepieces_cache:
45+
4746
networks:
4847
default:
4948
name: $W9_NETWORK
50-
external: true
49+
external: true

apps/activepieces/src/after_up.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/activepieces/src/encrypt.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/activepieces/src/filelist

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/activepieces/src/get_version.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/activepieces/src/nginx-proxy.conf.template

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)