File size: 2,157 Bytes
320e776
42a7d7b
 
320e776
42a7d7b
 
320e776
42a7d7b
 
 
 
 
 
 
 
 
320e776
42a7d7b
 
 
 
 
 
 
320e776
42a7d7b
 
 
 
 
 
 
 
320e776
524ec79
4d69af1
320e776
f398dc5
42a7d7b
dba434a
 
 
3fbb925
7f99b73
 
 
 
dba434a
96b5930
7f99b73
 
 
 
 
 
 
42a7d7b
 
 
320e776
42a7d7b
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 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_TASK_RUNNERS_ENABLED=false
N8N_LICENSE_AUTO_RENEW_ENABLED=false
N8N_LOG_LEVEL=error
# -----------------------------------------------------------------------------
# NETWORK — Outbound Proxy (Bypass HF Blocks)
# -----------------------------------------------------------------------------
# Your Cloudflare Worker URL (e.g. h8n-proxy.somrat.workers.dev)
CLOUDFLARE_PROXY_URL=
# Optional shared secret that should match Worker CLOUDFLARE_PROXY_SECRET
# If unset, proxy still works but without app-to-worker auth
# Generate with: openssl rand -hex 24
CLOUDFLARE_PROXY_SECRET=
# Comma-separated list of domains to proxy. Use "*" to proxy everything.
CLOUDFLARE_PROXY_DOMAINS=api.telegram.org,discord.com,discordapp.com

# Dashboard helper hardening
UPTIMEROBOT_SETUP_ENABLED=true
UPTIMEROBOT_RATE_LIMIT_PER_MINUTE=5

# Max seconds to wait for n8n readiness at startup
N8N_STARTUP_TIMEOUT=180
# BUILD-TIME VARIABLE (HF Spaces: add as Variable, not Secret)
# -----------------------------------------------------------------------------

# Pin a specific n8n version for reproducibility
N8N_VERSION=latest