Spaces:
Sleeping
Sleeping
File size: 1,300 Bytes
44ee7fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # ============================================================
# Hugging Face Space > Settings > Variables and secrets
# (Secrets = hidden values. Variables = normal values.)
# Replace <user> and <space> with your HF username and Space name.
# ============================================================
# ---- Variables ----
N8N_HOST=<user>-<space>.hf.space
WEBHOOK_URL=https://<user>-<space>.hf.space/
N8N_EDITOR_BASE_URL=https://<user>-<space>.hf.space/
# ---- Secrets (IMPORTANT) ----
# Generate once: openssl rand -hex 32 and NEVER change it later,
# otherwise all saved credentials (Telegram, Google) become unreadable.
N8N_ENCRYPTION_KEY=<64-char-random-hex>
# ---- Database (so workflows/credentials survive restarts) ----
# HF disk is wiped on every restart. Use your Supabase / any Postgres:
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=<db-host>
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=postgres
DB_POSTGRESDB_USER=<db-user>
DB_POSTGRESDB_PASSWORD=<db-password>
DB_POSTGRESDB_SCHEMA=n8n
DB_POSTGRESDB_SSL_ENABLED=true
DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false
# ============================================================
# Space README.md header must contain:
# ---
# title: n8n
# sdk: docker
# app_port: 7860
# ---
# ============================================================
|