-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.environment
42 lines (36 loc) · 1.68 KB
/
.environment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Basic configuration
export N8N_PORT=8888
export N8N_ONBOARDING_FLOW_DISABLED=false
export N8N_WORKFLOW_TAGS_DISABLED=false
export WEBHOOK_URL=$(echo $PLATFORM_ROUTES | base64 --decode | jq -r 'limit(1;.[] | select(.primary) | .production_url)')
export N8N_METRICS=false
export DATA_FOLDER=$PLATFORM_APP_DIR/.n8n/
# Security configuration - see README for more details
export N8N_BASIC_AUTH_ACTIVE=true
export N8N_BASIC_AUTH_USER=n8n
export N8N_BASIC_AUTH_PASSWORD=n8n
# Database configuration
export DB_TYPE=postgresdb
export DB_POSTGRESDB_DATABASE=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].path")
export DB_POSTGRESDB_HOST=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].host")
export DB_POSTGRESDB_PORT=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].port")
export DB_POSTGRESDB_USER=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].username")
export DB_POSTGRESDB_PASSWORD=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].password")
# Worker queue configuration
export QUEUE_BULL_REDIS_HOST=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".queue[0].host")
export QUEUE_BULL_REDIS_PORT=$(echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".queue[0].port")
# Executions configuration
export EXECUTIONS_MODE=queue
export EXECUTIONS_DATA_SAVE_ON_ERROR=all
export EXECUTIONS_DATA_SAVE_ON_SUCCESS=all
export EXECUTIONS_DATA_SAVE_ON_PROGRESS=true
export EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true
export EXECUTIONS_DATA_PRUNE=true
export EXECUTIONS_DATA_MAX_AGE=30
# Mail configuration
export N8N_EMAIL_MODE=smtp
export N8N_SMTP_HOST=$PLATFORM_SMTP_HOST
export N8N_SMTP_PORT=25
#export N8N_SMTP_USER=
#export N8N_SMTP_PASS=
#export N8N_SMTP_SENDER=