Spaces:
Runtime error
Runtime error
Delete README.mdf
#6
by
adi8n
- opened
README.md
DELETED
|
@@ -1,125 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: N8n
|
| 3 |
-
emoji: π»
|
| 4 |
-
colorFrom: indigo
|
| 5 |
-
colorTo: yellow
|
| 6 |
-
sdk: docker
|
| 7 |
-
pinned: false
|
| 8 |
-
license: ecl-2.0
|
| 9 |
-
short_description: n8n
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
## Deploy n8n Gratis di Hugging Face Spaces
|
| 13 |
-
|
| 14 |
-
Belum punya cloud atau domain sendiri? Gak masalah!
|
| 15 |
-
Template ini bantu kamu hosting n8n langsung di Hugging Face Spaces, gratis dan tanpa ribet.
|
| 16 |
-
|
| 17 |
-
> π Tutorial ini diadaptasi dari:
|
| 18 |
-
> [Reddit - Deploy n8n for free with Hugging Face Spaces](https://www.reddit.com/r/n8n/comments/1lxp0jx/deploy_n8n_for_free_with_hugging_face_spaces/)
|
| 19 |
-
|
| 20 |
-
---
|
| 21 |
-
|
| 22 |
-
Video Tutorial:
|
| 23 |
-
|
| 24 |
-
> [Type Click Done - Host n8n Gratis](https://www.tiktok.com/@typeclickdone)
|
| 25 |
-
|
| 26 |
-

|
| 27 |
-
|
| 28 |
-
---
|
| 29 |
-
|
| 30 |
-
Hugging Face Spaces menyediakan layanan gratis dengan spesifikasi berikut:
|
| 31 |
-
|
| 32 |
-
| **Perangkat Keras** | **CPU** | **RAM** | **Harga per Jam** |
|
| 33 |
-
| ------------------- | -------- | -------- | ----------------- |
|
| 34 |
-
| CPU Basic | 2 vCPU | 16 GB | Gratis! |
|
| 35 |
-
|
| 36 |
-
Spesifikasi ini sudah cukup untuk menjalankan n8n tanpa perlu server sendiri. Yuk kita deploy n8n dengan cara mudah!
|
| 37 |
-
|
| 38 |
-
---
|
| 39 |
-
|
| 40 |
-
## Menggunakan Supabase sebagai Database
|
| 41 |
-
|
| 42 |
-
Masalah utama dari **setup yang gratisan** adalah database bawaan n8n (SQLite) menyimpan data di dalam **filesystem container**, bukan di volume yang bersifat *persistent*, kecuali kamu secara eksplisit melakukan mounting volume tersebut.
|
| 43 |
-
|
| 44 |
-
Di Hugging Face Spaces versi gratis, kita **tidak bisa membuat volume persistent**, sehingga setiap kali container di-restart (misalnya karena redeploy), seluruh data akan hilang.
|
| 45 |
-
|
| 46 |
-
Solusinya: gunakan **Supabase** sebagai database eksternal yang *persisten dan stabil*.
|
| 47 |
-
|
| 48 |
-
---
|
| 49 |
-
|
| 50 |
-
### Langkah-langkah Menghubungkan Supabase:
|
| 51 |
-
|
| 52 |
-
1. **Daftar akun gratis di:**
|
| 53 |
-
[https://supabase.com/dashboard/sign-up](https://supabase.com/dashboard/sign-up)
|
| 54 |
-
|
| 55 |
-

|
| 56 |
-
|
| 57 |
-

|
| 58 |
-
|
| 59 |
-
2. **Buat project baru**, isi form yang diminta, dan **catat password database** yang ditampilkan.
|
| 60 |
-
Password ini akan digunakan nanti saat konfigurasi koneksi database di Dockerfile atau `.env`.
|
| 61 |
-
|
| 62 |
-

|
| 63 |
-
|
| 64 |
-
3. Setelah project dibuat, klik tombol **Connect** di menu kiri atas untuk melihat detail koneksi database.
|
| 65 |
-
|
| 66 |
-

|
| 67 |
-
|
| 68 |
-
4. Pilih opsi **SQLAlchemy** sebagai format *Connection String*, lalu cari bagian **Transaction Pooler**.
|
| 69 |
-
|
| 70 |
-

|
| 71 |
-
|
| 72 |
-

|
| 73 |
-
|
| 74 |
-
5. **Simpan informasi koneksi berikut untuk digunakan nanti:**
|
| 75 |
-
- **Host**
|
| 76 |
-
- **Port**
|
| 77 |
-
- **User**
|
| 78 |
-
- **DB Name**
|
| 79 |
-
|
| 80 |
-
---
|
| 81 |
-
|
| 82 |
-
Dengan Supabase, data workflow n8n kamu akan tetap aman dan tersimpan meskipun Space di-redeploy ulang.
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
---
|
| 86 |
-
|
| 87 |
-
### Langkah-langkah Deploy n8n di Hugging Face:
|
| 88 |
-
|
| 89 |
-
1. **Daftar akun gratis di**
|
| 90 |
-
[https://huggingface.co/join](https://huggingface.co/join) dan buat nama profil (misalnya: `typeclickdone`).
|
| 91 |
-
Ingat nama profil ini karena akan digunakan nanti.
|
| 92 |
-
|
| 93 |
-
2. **Akses halaman ini:**
|
| 94 |
-
[https://huggingface.co/spaces/typeclickdone/n8n](https://huggingface.co/spaces/typeclickdone/n8n)
|
| 95 |
-
Klik tombol menu di pojok kanan atas lalu pilih **Duplicate this space**.
|
| 96 |
-
|
| 97 |
-

|
| 98 |
-
|
| 99 |
-
3. **Isi atau ubah secret dan variabel di form pop-up. Untuk *N8N_ENCRYPTION_KEY*, bisa digenerate dari situs UUID v4.**
|
| 100 |
-
[https://www.uuidgenerator.net/version4](https://www.uuidgenerator.net/version4)
|
| 101 |
-
|
| 102 |
-

|
| 103 |
-
|
| 104 |
-

|
| 105 |
-
|
| 106 |
-
4. **Ubah visibility menjadi *public*:**
|
| 107 |
-
|
| 108 |
-

|
| 109 |
-
|
| 110 |
-
5. Klik tombol **Duplicate Space**, lalu tunggu proses deploy selesai. Kamu bisa melihat log-nya seperti ini:
|
| 111 |
-
|
| 112 |
-

|
| 113 |
-
|
| 114 |
-
6. Setelah selesai deploy, kamu akan mendapatkan URL space milikmu sendiri seperti ini:
|
| 115 |
-
|
| 116 |
-
**https://username_hugging_face_kamu-n8n.hf.space/**
|
| 117 |
-
|
| 118 |
-

|
| 119 |
-
|
| 120 |
-
---
|
| 121 |
-
|
| 122 |
-
Sekarang kamu bisa akses n8n-mu di URL:
|
| 123 |
-
**https://username_hugging_face_kamu-n8n.hf.space/**
|
| 124 |
-
|
| 125 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|