Spaces:
Sleeping
Sleeping
Delete n8n-huggingface.env
Browse files- n8n-huggingface.env +0 -151
n8n-huggingface.env
DELETED
|
@@ -1,151 +0,0 @@
|
|
| 1 |
-
###############################################################################
|
| 2 |
-
# n8n on Hugging Face Spaces + Supabase — Environment Configuration
|
| 3 |
-
#
|
| 4 |
-
# Copy this file to `.env` and fill in every value.
|
| 5 |
-
# NEVER commit the real `.env` file. It is already listed in .gitignore.
|
| 6 |
-
#
|
| 7 |
-
# On Hugging Face Spaces, do NOT upload a `.env` file at all — instead set
|
| 8 |
-
# each of these as a "Repository secret" / "Variable" in the Space settings
|
| 9 |
-
# (Settings → Variables and secrets). Secrets are injected as environment
|
| 10 |
-
# variables at container runtime, which is exactly what this image expects.
|
| 11 |
-
###############################################################################
|
| 12 |
-
|
| 13 |
-
# ---------------------------------------------------------------------------
|
| 14 |
-
# CORE SERVER SETTINGS
|
| 15 |
-
# ---------------------------------------------------------------------------
|
| 16 |
-
|
| 17 |
-
# Port n8n (and the fronting nginx) will bind to. Hugging Face Spaces injects
|
| 18 |
-
# its own PORT value (usually 7860) — leave this unset in HF and the
|
| 19 |
-
# entrypoint will pick up HF's $PORT automatically. For local/dev use 5678.
|
| 20 |
-
PORT=7860
|
| 21 |
-
|
| 22 |
-
# Internal port n8n itself listens on behind nginx. Do not expose this
|
| 23 |
-
# publicly; nginx is the only public-facing process.
|
| 24 |
-
N8N_PORT=5678
|
| 25 |
-
|
| 26 |
-
# Bind address — must be 0.0.0.0 for containers, otherwise n8n is
|
| 27 |
-
# unreachable from outside its own network namespace.
|
| 28 |
-
N8N_HOST=0.0.0.0
|
| 29 |
-
|
| 30 |
-
# n8n believes it is served over https in production. HF Spaces terminates
|
| 31 |
-
# TLS at the edge, so the app itself can safely declare "https" here even
|
| 32 |
-
# though nginx inside the container speaks plain HTTP to n8n.
|
| 33 |
-
N8N_PROTOCOL=https
|
| 34 |
-
|
| 35 |
-
# Public URL of your Space, used to build webhook URLs. Must match your
|
| 36 |
-
# actual HF Space URL, e.g. https://your-username-your-space.hf.space
|
| 37 |
-
WEBHOOK_URL=https://sivakumar330-automations.hf.space/
|
| 38 |
-
|
| 39 |
-
# Base URL n8n uses to build links inside the editor UI. Usually identical
|
| 40 |
-
# to WEBHOOK_URL.
|
| 41 |
-
N8N_EDITOR_BASE_URL=https://sivakumar330-automations.hf.space/
|
| 42 |
-
|
| 43 |
-
# 32+ byte random string used to encrypt credentials at rest. Generate with:
|
| 44 |
-
# openssl rand -hex 32
|
| 45 |
-
# CHANGING THIS AFTER FIRST START WILL MAKE EXISTING CREDENTIALS UNREADABLE.
|
| 46 |
-
# Back it up somewhere safe (e.g. a password manager), outside of git.
|
| 47 |
-
N8N_ENCRYPTION_KEY=2719cf620d5aeac2fc665e90bbc1484d131b1cebee273c34640ce567322cbd12
|
| 48 |
-
|
| 49 |
-
# Where n8n stores its local config/state (separate from workflow data,
|
| 50 |
-
# which lives in Postgres). Should point at the persistent volume.
|
| 51 |
-
N8N_USER_FOLDER=/data/.n8n
|
| 52 |
-
|
| 53 |
-
# ---------------------------------------------------------------------------
|
| 54 |
-
# DATABASE — SUPABASE POSTGRESQL
|
| 55 |
-
# ---------------------------------------------------------------------------
|
| 56 |
-
# In Supabase: Project Settings → Database → Connection string.
|
| 57 |
-
# Prefer the "Connection pooling" (pgbouncer, port 6543) host for
|
| 58 |
-
# serverless-style workloads; use the direct connection (port 5432) if you
|
| 59 |
-
# need session-level features n8n's pool relies on. Either works; pooling is
|
| 60 |
-
# recommended for HF Spaces' constrained resources.
|
| 61 |
-
|
| 62 |
-
DB_TYPE=postgresdb
|
| 63 |
-
DB_POSTGRESDB_HOST=aws-0-ap-northeast-1.pooler.supabase.com
|
| 64 |
-
DB_POSTGRESDB_PORT=6543
|
| 65 |
-
DB_POSTGRESDB_DATABASE=postgres
|
| 66 |
-
DB_POSTGRESDB_USER=postgres.bgwbygyyfypofatabqdy
|
| 67 |
-
DB_POSTGRESDB_PASSWORD=Siva@4200n8n
|
| 68 |
-
DB_POSTGRESDB_SSL_ENABLED=true
|
| 69 |
-
|
| 70 |
-
# Supabase requires SSL and its certificate is publicly trusted, so strict
|
| 71 |
-
# verification can stay on. Set to "true" unless Supabase support tells you
|
| 72 |
-
# otherwise for your project.
|
| 73 |
-
DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=true
|
| 74 |
-
|
| 75 |
-
# Connection pool sizing — keep conservative on small HF Spaces instances.
|
| 76 |
-
DB_POSTGRESDB_POOL_SIZE=4
|
| 77 |
-
DB_POSTGRESDB_CONNECTION_TIMEOUT=20000
|
| 78 |
-
|
| 79 |
-
# ---------------------------------------------------------------------------
|
| 80 |
-
# LOCALE / TIME
|
| 81 |
-
# ---------------------------------------------------------------------------
|
| 82 |
-
GENERIC_TIMEZONE=UTC
|
| 83 |
-
TZ=UTC
|
| 84 |
-
|
| 85 |
-
# ---------------------------------------------------------------------------
|
| 86 |
-
# EXECUTION / SCALING MODE
|
| 87 |
-
# ---------------------------------------------------------------------------
|
| 88 |
-
# "regular" is correct for a single-container HF Space. Queue mode requires
|
| 89 |
-
# Redis + separate worker processes, which is out of scope for a single
|
| 90 |
-
# Space deployment.
|
| 91 |
-
EXECUTIONS_MODE=regular
|
| 92 |
-
QUEUE_MODE=false
|
| 93 |
-
|
| 94 |
-
# How long finished execution data is retained (hours). Keep low on small
|
| 95 |
-
# instances to bound Postgres growth.
|
| 96 |
-
EXECUTIONS_DATA_MAX_AGE=336
|
| 97 |
-
EXECUTIONS_DATA_PRUNE=true
|
| 98 |
-
|
| 99 |
-
# ---------------------------------------------------------------------------
|
| 100 |
-
# TELEMETRY / PERSONALIZATION
|
| 101 |
-
# ---------------------------------------------------------------------------
|
| 102 |
-
N8N_DIAGNOSTICS_ENABLED=false
|
| 103 |
-
N8N_VERSION_NOTIFICATIONS_ENABLED=false
|
| 104 |
-
N8N_PERSONALIZATION_ENABLED=false
|
| 105 |
-
N8N_HIRING_BANNER_ENABLED=false
|
| 106 |
-
N8N_TEMPLATES_ENABLED=false
|
| 107 |
-
|
| 108 |
-
# ---------------------------------------------------------------------------
|
| 109 |
-
# SECURITY
|
| 110 |
-
# ---------------------------------------------------------------------------
|
| 111 |
-
N8N_SECURE_COOKIE=true
|
| 112 |
-
NODE_ENV=production
|
| 113 |
-
|
| 114 |
-
# Basic auth as a second layer in front of n8n's own user management.
|
| 115 |
-
# Strongly recommended for public HF Spaces. Leave blank to disable, but
|
| 116 |
-
# then rely entirely on n8n's built-in owner account creation on first run.
|
| 117 |
-
N8N_BASIC_AUTH_ACTIVE=false
|
| 118 |
-
N8N_BASIC_AUTH_USER=
|
| 119 |
-
N8N_BASIC_AUTH_PASSWORD=
|
| 120 |
-
|
| 121 |
-
# Disables the ability to run arbitrary shell commands via the "Execute
|
| 122 |
-
# Command" node. Recommended "true" for public-facing deployments.
|
| 123 |
-
N8N_BLOCK_ENV_ACCESS_IN_NODE=true
|
| 124 |
-
N8N_DISABLE_PRODUCTION_MAIN_PROCESS=false
|
| 125 |
-
|
| 126 |
-
# JWT secret used for internal auth tokens (n8n falls back to
|
| 127 |
-
# N8N_ENCRYPTION_KEY if unset, but an explicit distinct secret is safer).
|
| 128 |
-
# Generate with: openssl rand -hex 32
|
| 129 |
-
N8N_USER_MANAGEMENT_JWT_SECRET=
|
| 130 |
-
|
| 131 |
-
# ---------------------------------------------------------------------------
|
| 132 |
-
# LOGGING
|
| 133 |
-
# ---------------------------------------------------------------------------
|
| 134 |
-
N8N_LOG_LEVEL=info
|
| 135 |
-
N8N_LOG_OUTPUT=console,file
|
| 136 |
-
N8N_LOG_FILE_LOCATION=/data/logs/n8n.log
|
| 137 |
-
N8N_LOG_FILE_MAXSIZE=16
|
| 138 |
-
N8N_LOG_FILE_MAXCOUNT=10
|
| 139 |
-
|
| 140 |
-
# ---------------------------------------------------------------------------
|
| 141 |
-
# BACKUP (used by scripts/backup.sh and scripts/restore.sh)
|
| 142 |
-
# ---------------------------------------------------------------------------
|
| 143 |
-
# Optional direct Postgres connection string used by pg_dump/pg_restore.
|
| 144 |
-
# Format: postgresql://user:password@host:port/database?sslmode=require
|
| 145 |
-
SUPABASE_DB_URL=
|
| 146 |
-
|
| 147 |
-
# Where backups are written inside the container / persistent volume.
|
| 148 |
-
BACKUP_DIR=/data/backups
|
| 149 |
-
|
| 150 |
-
# How many days of backups to retain locally before pruning.
|
| 151 |
-
BACKUP_RETENTION_DAYS=14
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|