iT邦幫忙

2025 iThome 鐵人賽

DAY 7
0
Security

安全助手養成 Vibe UP系列 第 7

Day 7:環境建置 — N8N 安全助手平台(huggingface)

  • 分享至 

  • xImage
  •  

實際手把手環境建立步驟,這邊用雲端huggingface免費空間為例

Supabase

https://supabase.com/
Supabase 是 Postgres 開發平台。使用 Postgres 資料庫、身份驗證、即時 API、邊緣函數和即時訂閱功能

1. 註冊

Region 選 West US (North California) 靠近huggingface

2. 建立

最上方選Connect進入建立畫面
Type選SQLAlchemy
https://ithelp.ithome.com.tw/upload/images/20250921/20077752IqK0YTNDg3.png

Transaction pooler記錄下來
https://ithelp.ithome.com.tw/upload/images/20250921/20077752ng60280gz8.png

Huggingface

https://huggingface.co/
建構未來的人工智慧社群。機器學習社群在此平台上協作開發模型、資料集和應用程式。

1. 建立

https://huggingface.co/spaces/baoyin2024/n8n-free
Duplicate this Space
https://ithelp.ithome.com.tw/upload/images/20250921/20077752Z6kyaibY36.png

根據前面Supabase的帳密,N8N_ENCRYPTION_KEY我隨便設一組
https://ithelp.ithome.com.tw/upload/images/20250921/200777524FqVqrD8E2.png

改成自己帳號名稱
https://ithelp.ithome.com.tw/upload/images/20250921/20077752WaWudywTac.png

接著就開始建置,等到連結出現表示成功
https://ithelp.ithome.com.tw/upload/images/20250921/20077752mZH1CtRasI.png

2. 登入

https://[你的帳號]-n8n-free.hf.space
初始設定N8N帳密

3. 建立

點選右上角 Create Workflow
https://ithelp.ithome.com.tw/upload/images/20250921/20077752ZfRca9S9R5.png

可以自已建或匯入別人的
官方網站樣板庫(https://n8n.io/integrations/)

點右上角三個點的圖示,選Import,接著輸入網址即可
https://docs.n8n.io/_workflows//courses/level-one/chapter-5/chapter-5.1.json
https://ithelp.ithome.com.tw/upload/images/20250921/20077752ofKNuI3dwG.png

疑難排除

因為是免費空間,一段時間沒用會自動停掉,需要手動重新啟動

  1. 登入supabase,Project Status如果是黃燈,可以按啟動
  2. DB停掉 huggingface上的N8N會紅燈停止,可以到Settings重新啟動,甚至rebuild

點自己頭像,按Profile自己專案,選自己Spaces專案
https://ithelp.ithome.com.tw/upload/images/20250921/20077752o81t0df4hw.png
點Settings,往下滾找到Restart this Space及Factory rebuild
https://ithelp.ithome.com.tw/upload/images/20250921/20077752UE7Sokuqeb.png

參考

Yes


上一篇
Day 6:模組設計 — 打造安全助手的核心架構
下一篇
Day 8:模組1 — RSS 安全新聞啟動
系列文
安全助手養成 Vibe UP9
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言