File size: 1,435 Bytes
33261d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# n8n on Hugging Face - Setup (Tamil/English)

## 1. Free Postgres DB create pannunga (data save aaga)
HF free Space restart aana files azhinjidum. So Neon (neon.tech) or Supabase la free Postgres create pannunga.
Connection details note pannunga: host, database, user, password.

## 2. HF Space create
- huggingface.co/new-space -> SDK: **Docker** -> Blank -> Public/Private
- Ella files um (Dockerfile, start.sh, README.md) upload pannunga

## 3. Space -> Settings -> Variables and secrets
**Secrets:**
| Name | Value |
|---|---|
| N8N_ENCRYPTION_KEY | any long random string (command: `openssl rand -hex 24`) |
| DB_POSTGRESDB_PASSWORD | your DB password |

**Variables:**
| Name | Value |
|---|---|
| DB_POSTGRESDB_HOST | e.g. ep-xxxx.ap-southeast-1.aws.neon.tech |
| DB_POSTGRESDB_DATABASE | neondb |
| DB_POSTGRESDB_USER | neondb_owner |
| DB_POSTGRESDB_PORT | 5432 |

## 4. Run
Space automatically build aagum (2-4 min). Build mudinjathum "Running" nu varum.
Open pannunga -> first time owner account setup screen varum.

## Notes
- N8N_ENCRYPTION_KEY maathathinga, illana credentials decrypt aagathu.
- Free Space 48 hrs inactive na sleep aagum. Webhooks work aaga Space awake-a irukanum
  (UptimeRobot la `https://<space>.hf.space/healthz` ping pannalam).
- Private Space na external webhooks work aagathu - Public vechukonga.
- Local la test: `docker build -t n8n-hf . && docker run -p 5678:5678 -e N8N_PROTOCOL=http n8n-hf`