Skip to content

Commit

Permalink
Merge pull request #1255 from Websoft9/update-activepieces-27e4f69c
Browse files Browse the repository at this point in the history
Update activepieces
  • Loading branch information
qiaofeng1227 authored Jan 21, 2025
2 parents af9f941 + 2e0c085 commit 98d6ffe
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 198 deletions.
62 changes: 30 additions & 32 deletions apps/activepieces/.env
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
W9_REPO=wordpress
W9_DIST=community
W9_VERSION=latest

W9_POWER_PASSWORD=1PrMxExC45LsCT
W9_REPO=ghcr.io/activepieces/activepieces
W9_DIST='community'
W9_VERSION='0.39.2'
W9_POWER_PASSWORD='fm#rIkLRk7MXFs6V'

# Environments which for user settings when create application
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
W9_HTTP_PORT_SET=9001
# W9_HTTPS_PORT_SET=9002
# W9_DB_PORT_SET=3306
# W9_SSH_PORT_SET=23
W9_KEY_SET="dfsjdkjf77xjxcjcj"
W9_HTTP_PORT_SET='9001'

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####

W9_ID=activepieces

# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
# Some container (e.g teleport) need HTTPS access, then need to set this pra
W9_ID='activepieces'
W9_HTTP_PORT=80
W9_HTTPS_PORT=81

W9_LOGIN_USER=admin
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
# this password can also use password file
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
W9_ADMIN_PATH="/wp-login"

# Container name's suffix must use one of the value
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"

# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT
# If have protocols, should be set it in the APP's ENV
W9_URL=internet_ip:$W9_HTTP_PORT_SET
# modifies W9_URL on init when it is true
W9_URL_REPLACE=true
W9_DB_EXPOSE="postgresql"
W9_URL='internet_ip:$W9_HTTP_PORT_SET'

W9_NETWORK=websoft9

#### ----------------------------------------------------------------------------------------- ####

AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js

# Below environment is created by apphub
## Random Long Password (Optional for community edition)
AP_API_KEY=2e432eeb523308a35a5c1131081547a6db7aaffb14daeda2401e659645ff172aaf02ea803e68d559fafabc4ee37a1a6e92e87f3c567ef7a5b7efd8d626adb0cd

## 256 bit encryption key, 32 hex character
AP_ENCRYPTION_KEY=62d9672ed7c55a9bf31b34149c07c9ad

#W9_NAME=""
#W9_RCODE=""
## JWT Secret
AP_JWT_SECRET=094d670880695794b4bf6c7556e63948ec02a5a70170e541897fd6bfebedbe5b

AP_ENVIRONMENT=prod
AP_FRONTEND_URL=$W9_URL
AP_WEBHOOK_TIMEOUT_SECONDS=30
AP_TRIGGER_DEFAULT_POLL_INTERVAL=5

AP_EXECUTION_MODE=UNSANDBOXED

AP_FLOW_TIMEOUT_SECONDS=600
AP_TELEMETRY_ENABLED=true
AP_TEMPLATES_SOURCE_URL="https://cloud.activepieces.com/api/v1/flow-templates"


# Below environment is created by apphub
21 changes: 0 additions & 21 deletions apps/activepieces/Dockerfile

This file was deleted.

8 changes: 6 additions & 2 deletions apps/activepieces/Notes.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Appname
## FAQ
# Activepieces
generate the keys:

AP_API_KEY : ```openssl rand -hex 64```
AP_JWT_SECRET : ```openssl rand -hex 32```
ENCRYPTION_KEY: ```openssl rand -hex 16```
26 changes: 0 additions & 26 deletions apps/activepieces/README.jinja2

This file was deleted.

67 changes: 33 additions & 34 deletions apps/activepieces/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,49 @@
# image,docs: https://hub.docker.com/_/wordpress/

services:

wordpress:
activepieces:
image: $W9_REPO:$W9_VERSION
container_name: $W9_ID
restart: unless-stopped
#This is for access host from container
# extra_hosts: ["host.docker.internal:host-gateway"]
# command: |
# /bin/bash -c "ping -c 3 host.docker.internal"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: 10m
deploy:
resources:
limits:
memory: 5g
cpus: '0.7'
ports:
- $W9_HTTP_PORT_SET:80
depends_on:
- postgres
- redis
env_file: .env
environment:
AP_POSTGRES_HOST: $W9_ID-postgresql
AP_POSTGRES_DATABASE: activepieces
AP_POSTGRES_PORT: 5432
AP_POSTGRES_USERNAME: postgres
AP_POSTGRES_PASSWORD: $W9_POWER_PASSWORD
AP_REDIS_HOST: $W9_ID-redis
AP_REDIS_PORT: 6379
volumes:
- wordpress:/var/www/html
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
- activepieces_cache:/usr/src/app/cache

mariadb:
image: mariadb:10.4
container_name: $W9_ID-mariadb
postgres:
image: postgres:14.4
container_name: $W9_ID-postgresql
restart: unless-stopped
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_DATABASE: $W9_ID
MYSQL_USER: $W9_ID
MYSQL_PASSWORD: $W9_POWER_PASSWORD
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
POSTGRES_DB: activepieces
POSTGRES_PASSWORD: $W9_POWER_PASSWORD
POSTGRES_USER: postgres
volumes:
- postgres_data:/var/lib/postgresql/data

redis:
image: redis:7.0.7
container_name: $W9_ID-redis
restart: unless-stopped
volumes:
- redis_data:/data

volumes:
wordpress:
mysql_data:

postgres_data:
redis_data:
activepieces_cache:

networks:
default:
name: $W9_NETWORK
external: true
external: true
1 change: 0 additions & 1 deletion apps/activepieces/src/after_up.sh

This file was deleted.

12 changes: 0 additions & 12 deletions apps/activepieces/src/encrypt.sh

This file was deleted.

3 changes: 0 additions & 3 deletions apps/activepieces/src/filelist

This file was deleted.

1 change: 0 additions & 1 deletion apps/activepieces/src/get_version.sh

This file was deleted.

57 changes: 0 additions & 57 deletions apps/activepieces/src/nginx-proxy.conf.template

This file was deleted.

8 changes: 0 additions & 8 deletions apps/activepieces/src/php_exra.ini

This file was deleted.

1 change: 0 additions & 1 deletion apps/activepieces/src/replace_url.sh

This file was deleted.

0 comments on commit 98d6ffe

Please sign in to comment.