| # Your Hugging Face write token | |
| HF_TOKEN= | |
| # Your Hugging Face username (inferred automatically on HF Spaces) | |
| HF_USERNAME= | |
| # Name of the private dataset repo used for backup | |
| BACKUP_DATASET_NAME=hugging8n-backup | |
| # How often to sync the backup, in seconds | |
| SYNC_INTERVAL=180 | |
| # ----------------------------------------------------------------------------- | |
| # OPTIONAL β n8n Configuration | |
| # ----------------------------------------------------------------------------- | |
| # Timezone for n8n triggers (e.g. Asia/Dhaka) | |
| GENERIC_TIMEZONE=UTC | |
| # n8n encryption key β protects stored credentials. Persisted in backup. | |
| # Generate with: openssl rand -hex 32 | |
| N8N_ENCRYPTION_KEY= | |
| # ----------------------------------------------------------------------------- | |
| # ADVANCED β n8n Internals | |
| # ----------------------------------------------------------------------------- | |
| # Internal n8n port (default: 5678) | |
| N8N_PORT=5678 | |
| # Public proxy port exposed by HF Spaces (default: 7861) | |
| PUBLIC_PORT=7861 | |
| # Disable unnecessary services | |
| N8N_PYTHON_NODES_ENABLED=false | |
| N8N_LICENSE_AUTO_RENEW_ENABLED=false | |
| # ----------------------------------------------------------------------------- | |
| # BUILD-TIME VARIABLE (HF Spaces: add as Variable, not Secret) | |
| # ----------------------------------------------------------------------------- | |
| # Pin a specific n8n version for reproducibility | |
| N8N_VERSION=latest | |