|
#!/bin/bash |
|
set -e |
|
|
|
|
|
trap 'echo "Error on line $LINENO"' ERR |
|
|
|
|
|
: "${N8N_ENCRYPTION_KEY:?Need to set N8N_ENCRYPTION_KEY}" |
|
|
|
WEBDAV_URL="$WEBDAV_URL" |
|
WEBDAV_USER="$WEBDAV_USER" |
|
WEBDAV_PASSWORD="$WEBDAV_PASSWORD" |
|
|
|
current_time=$(date +"%Y-%m-%d %H:%M:%S") |
|
echo "Starting n8n at $current_time" |
|
|
|
|
|
export N8N_ENCRYPTION_KEY="n8n8n8n" |
|
|
|
export NODE_FUNCTION_ALLOW_BUILTIN=* |
|
|
|
export NODE_FUNCTION_ALLOW_EXTERNAL=* |
|
|
|
export EXECUTIONS_DATA_PRUNE=true |
|
|
|
export EXECUTIONS_DATA_MAX_AGE=36 |
|
|
|
export EXECUTIONS_DATA_PRUNE_MAX_COUNT=1000 |
|
|
|
export EXECUTIONS_DATA_SAVE_ON_ERROR=all |
|
|
|
export EXECUTIONS_DATA_SAVE_ON_SUCCESS=all |
|
|
|
export EXECUTIONS_DATA_SAVE_ON_PROGRESS=false |
|
|
|
export EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false |
|
|
|
|
|
exec n8n start |
|
|