#!/bin/bash # N8N 基础配置 export N8N_ENCRYPTION_KEY="${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 # N8N 功能配置 export N8N_DIAGNOSTICS_ENABLED=false export N8N_VERSION_NOTIFICATIONS_ENABLED=true export N8N_TEMPLATES_ENABLED=false export N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true # 性能优化配置 export N8N_PROCESS_THREADED=true export N8N_METRICS_ENABLED=true export N8N_HIRING_BANNER_ENABLED=false export N8N_USER_MANAGEMENT_DISABLED=false export N8N_PERSONALIZATION_ENABLED=false