# ============================================================ # Hugging Face Space > Settings > Variables and secrets # (Secrets = hidden values. Variables = normal values.) # Replace and with your HF username and Space name. # ============================================================ # ---- Variables ---- N8N_HOST=-.hf.space WEBHOOK_URL=https://-.hf.space/ N8N_EDITOR_BASE_URL=https://-.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_POSTGRESDB_PORT=5432 DB_POSTGRESDB_DATABASE=postgres DB_POSTGRESDB_USER= DB_POSTGRESDB_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 # --- # ============================================================