Spaces:
Sleeping
Sleeping
# n8n Infrastructure Environment Configuration | |
# Copy this file to .env and fill in your actual values. | |
# NEVER commit the .env file to version control. | |
# ===== CORE N8N CONFIGURATION ===== | |
# Generate with `openssl rand -hex 32` | |
N8N_ENCRYPTION_KEY= | |
# Generate with `openssl rand -hex 32` | |
N8N_USER_MANAGEMENT_JWT_SECRET= | |
N8N_HOST=your-n8n-host.hf.space | |
N8N_PUBLIC_API_DISABLED=false | |
N8N_LOG_LEVEL=info | |
N8N_METRICS=true | |
QUEUE_BULL_REDIS_DISABLED=true | |
EXECUTIONS_MODE=regular | |
EXECUTIONS_DATA_SAVE_ON_ERROR=all | |
EXECUTIONS_DATA_SAVE_ON_SUCCESS=none | |
EXECUTIONS_DATA_PRUNE=true | |
EXECUTIONS_DATA_MAX_AGE=336 | |
WEBHOOK_URL=https://your-n8n-host.hf.space/ | |
# ===== DATABASE CONFIGURATION (SUPABASE) ===== | |
# Find these in your Supabase project settings | |
DB_TYPE=postgresdb | |
DB_POSTGRESDB_HOST= | |
DB_POSTGRESDB_PORT=6543 | |
DB_POSTGRESDB_DATABASE=postgres | |
DB_POSTGRESDB_USER=postgres | |
DB_POSTGRESDB_SCHEMA=public | |
# NOTE: Keep DB password only in HF Space Secrets (runtime) or a local .env file. | |
DB_POSTGRESDB_PASSWORD= | |
DB_POSTGRESDB_SSL=true | |
DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false | |
# ===== DEPLOYMENT CONFIGURATION ===== | |
# NOTE: These should be GitHub Actions Secrets, not used by the runtime container. | |
HF_TOKEN= | |
HF_SPACE_NAME=your-username/your-space-name | |
GITHUB_TOKEN= | |
# ===== AI INTEGRATIONS ===== | |
# NOTE: Keep AI/API keys in HF Space Secrets (runtime) and/or GitHub Actions Secrets | |
OPENAI_API_KEY= | |
ANTHROPIC_API_KEY= | |
GOOGLE_PROJECT_ID= | |
# The following are used if you mount a service account key file | |
GOOGLE_CREDENTIALS_PATH=/home/node/.n8n/credentials/google-service-account.json | |
GOOGLE_APPLICATION_CREDENTIALS=/home/node/.n8n/credentials/google-service-account.json | |
# ===== VECTOR STORE CONFIGURATION (CHROMA) ===== | |
CHROMA_AUTH_TOKEN= | |
CHROMA_HOST=api.chroma.com | |
CHROMA_PORT=443 | |
# ===== KNOWLEDGE BASE SYNC ===== | |
# The repository to sync knowledge from | |
KB_REPO_N8N=https://github.com/danilonovaisv/CHATGPT-knowledge-base.git | |
KB_BRANCH_N8N=main | |
# Comma-separated list of directories inside the repo to sync | |
KB_PATH_N8N=projects/n8n,projects/videos-e-animacoes,projects/midjorney-prompt | |
# ===== MONITORING AND LOGGING ===== | |
SENTRY_DSN= | |
# ===== BACKUP CONFIGURATION ===== | |
# API key for the backup script to access n8n | |
N8N_API_KEY= | |
BACKUP_ENCRYPTION_PASSWORD= | |
# ===== SECURITY ===== | |
# A comma-separated list of allowed origins for the n8n UI | |
ALLOWED_ORIGINS=https://your-n8n-host.hf.space | |
# Generate with `openssl rand -hex 32` | |
CSRF_SECRET= | |
RATE_LIMIT_WINDOW=15 | |
RATE_LIMIT_MAX=100 | |