Hugging8N / README.md
somratpro's picture
fix: revert Telegram SNI workaround and restore proper dns-fix.js behavior
9c5c64a
|
raw
history blame
3.53 kB
---
title: Hugging8n
emoji: πŸ”—
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7861
pinned: true
license: mit
secrets:
- name: HF_TOKEN
description: HuggingFace token with write access. Used for automatic backup.
---
# πŸ”— Hugging8n
**Self-hosted n8n workflow automation β€” free, no server needed.** Hugging8n runs [n8n](https://n8n.io) on HuggingFace Spaces Docker, serving a premium dashboard at `/` and the n8n editor is accessible via the dashboard.
## ✨ Features
- ⚑ **Zero Config:** Duplicate this Space, set `HF_TOKEN`, and you're ready.
- πŸ’Ύ **Persistent Backup:** Workflows and credentials back up automatically to a private HF Dataset.
- πŸ” **Secure by Default:** Uses n8n v2's built-in user management. No more insecure environment variables.
- 🌐 **Premium Dashboard:** Live status monitoring, uptime tracking, and integrated keep-alive tools.
- ⏰ **Built-in Keep-Alive:** Easily setup UptimeRobot directly from the dashboard UI.
- 🐳 **Optimized Infrastructure:** Clean startup logs, minimal resource usage, and production-ready proxy.
## πŸš€ Quick Start
### Step 1: Duplicate this Space
[![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-xl.svg)](https://huggingface.co/spaces/somratpro/Hugging8n?duplicate=true)
### Step 2: Configure Secrets
Go to **Settings > Secrets** and add:
- `HF_TOKEN`: Your HuggingFace token with **Write** access.
### Step 3: Initialize n8n
1. Wait for the Space to build.
2. Visit the Space URL and click **Open n8n Editor**.
3. Create your owner account (this is your primary login).
## βš™οΈ Configuration
You can customize Hugging8n using Environment Variables (Settings > Variables):
| Variable | Default | Description |
| :--- | :--- | :--- |
| `SYNC_INTERVAL` | `180` | Backup frequency in seconds. |
| `GENERIC_TIMEZONE` | `UTC` | Timezone for n8n. |
| `N8N_LOG_LEVEL` | `error` | Set to `info` for more verbose logs. |
| `SPACE_HOST_OVERRIDE` | - | Override the detected host if using a custom domain. |
## πŸ” Authentication & Security
Hugging8n uses n8n's native user management.
- The first person to access the n8n editor on a fresh install becomes the **Owner**.
- **Important:** If you delete the Space and haven't set up `HF_TOKEN`, your users and workflows will be lost.
- **Permissions:** The startup script uses `umask 0077` to ensure all sensitive data is restricted to the node user.
## πŸ’Ύ Persistent Backup
Hugging8n automatically creates and maintains a private dataset in your Hugging Face account named `hugging8n-backup`.
- **Sync Status:** You can check the current sync health directly on the Hugging8n Dashboard.
- **Restoration:** On every startup, Hugging8n pulls the latest state from your dataset before launching n8n.
## ⚠️ Known Limitations & Workarounds
**Discord Webhooks**
Hugging Face officially blocks outgoing connections to Discord on Free Tier Spaces. To use the Discord node, you must route your traffic through a simple, free proxy.
πŸ‘‰ **[Read the Guide: How to Create a Free Discord Proxy in 2 minutes](./DISCORD_PROXY_GUIDE.md)**
*(Upgrading to a paid Space removes this firewall restriction entirely).*
## πŸ—οΈ Architecture
- `/` : **Premium Dashboard** (Management & Monitoring)
- All other paths (e.g., `/home/workflows`) : Proxied to **n8n Workflow Editor**
- `/health` : **Health Check** (Used by the internal proxy and external monitors)
---
*Made with ❀️ by [@somratpro](https://github.com/somratpro)*