Automations / space-variables.env
sivakumar330's picture
Upload 3 files
44ee7fe verified
Raw History Blame Contribute Delete
1.3 kB
# ============================================================
# 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
# ---
# ============================================================