Spaces:
Sleeping
title: Hatim's n8n Automation Hub
emoji: π€
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
π€ Hatim's n8n Automation Hub
A powerful n8n automation platform running on HuggingFace Spaces with pre-configured workflows for crypto alerts, social media automation, and more!
π― Why Create Your Own Space?
β
Full control - Configure n8n exactly how you want
β
No restrictions - All outbound connections work
β
Private workflows - Your automations stay private
β
Custom configuration - Set your own environment variables
β
Always available - Your own dedicated instance
β
Free hosting - HuggingFace Spaces is free!
ποΈ Step-by-Step Setup Guide
Step 1: Create HuggingFace Account
- Go to huggingface.co
- Sign up for free account
- Verify your email
Step 2: Create New Space
- Go to huggingface.co/new-space
- Space name:
private-n8n(or whatever you prefer) - License: MIT
- SDK: Docker
- Hardware: CPU basic (free)
- Visibility: Private (recommended)
- Click "Create Space"
Step 3: Upload Files
- Upload the
Dockerfilefrom this folder - Create a
workflowsfolder in your space - Upload your crypto alert workflows to the workflows folder
Step 4: Configure Environment Variables
In your HuggingFace Space settings, add these environment variables:
N8N_HOST=0.0.0.0
N8N_PORT=7860
N8N_PROTOCOL=http
N8N_DISABLE_UI=false
N8N_BASIC_AUTH_ACTIVE=false
TELEGRAM_BOT_TOKEN=8270791217:AAEuM2vGgx44-wGV_s2UO_32Cfmp9kN4gKY
TELEGRAM_CHANNEL_ID=@nokyccryptoalerts
Step 5: Build and Deploy
- HuggingFace will automatically build your Docker container
- Wait 2-5 minutes for build to complete
- Your private n8n instance will be available at:
https://huggingface.co/spaces/YOUR-USERNAME/private-n8n
π§ Configuration Options
Environment Variables You Can Set:
# Basic Configuration
N8N_HOST=0.0.0.0
N8N_PORT=7860
N8N_PROTOCOL=http
# Security (optional)
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=your-secure-password
# Telegram Configuration
TELEGRAM_BOT_TOKEN=your-bot-token
TELEGRAM_CHANNEL_ID=@your-channel
# Other APIs
COINGECKO_API_KEY=your-key-if-you-have-one
π° Pre-configured Workflows
Included Workflows:
- Crypto Price Alerts - Monitor BTC, ETH, ADA, SOL, DOGE
- Telegram Notifications - Send alerts to your channel
- Affiliate Link Integration - Monetize your alerts
- Error Handling - Robust error management
Workflow Features:
- β 15-minute intervals - Regular price checking
- β Smart filtering - Only significant moves (3%+)
- β Affiliate integration - Multiple revenue streams
- β Professional formatting - Engaging alert messages
π Advantages of Your Own Space
vs Shared Spaces:
- β Shared: Network restrictions, rate limits, instability
- β Private: Full internet access, your own resources, reliable
vs Local Installation:
- β Local: Requires your computer running 24/7, internet issues
- β HuggingFace: Always online, cloud infrastructure, free hosting
vs Paid Services:
- β Paid: Monthly costs ($10-50/month), vendor lock-in
- β HuggingFace: Completely free, portable, open source
π οΈ Customization Guide
Adding New Workflows:
- Create workflow in n8n interface
- Export as JSON
- Upload to
workflows/folder in your space - Restart container (automatic)
Adding Custom Nodes:
Edit the Dockerfile to install custom n8n nodes:
RUN npm install n8n-nodes-custom-package
Database Persistence:
For production use, configure external database:
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=your-db-host
DB_POSTGRESDB_DATABASE=n8n
DB_POSTGRESDB_USER=n8n
DB_POSTGRESDB_PASSWORD=your-password
π Security Best Practices
Enable Basic Authentication:
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=your-username
N8N_BASIC_AUTH_PASSWORD=strong-password-123
Use Environment Variables:
- β Store sensitive data in HuggingFace Space settings
- β Never hardcode API keys in workflows
- β
Use
{{$env.VARIABLE_NAME}}in workflows
Network Security:
- β Keep your space private
- β Use HTTPS URLs only
- β Regularly update your Docker image
π Monitoring and Maintenance
Health Checks:
The Dockerfile includes automatic health checks:
curl -f http://localhost:7860/healthz
Logs Access:
View logs in your HuggingFace Space:
- Go to your space
- Click "Logs" tab
- Monitor workflow execution
Backup Strategy:
- Export workflows regularly from n8n interface
- Save to GitHub or local backup
- Document your configurations in README files
π¨ Troubleshooting
Common Issues:
Space won't start:
- Check Dockerfile syntax
- Verify all files uploaded correctly
- Review build logs in HuggingFace
Workflows not loading:
- Ensure workflows folder exists
- Check JSON format of workflow files
- Verify file permissions
Telegram not working:
- Verify bot token in environment variables
- Check channel permissions
- Test with simple HTTP request workflow
Performance issues:
- Monitor resource usage in space logs
- Consider upgrading to CPU optimized hardware
- Optimize workflow execution frequency
π‘ Pro Tips
Optimization:
- Use webhook triggers instead of polling when possible
- Cache API responses to reduce external calls
- Implement error handling and retries
Scaling:
- Start with free tier, upgrade if needed
- Monitor usage patterns
- Consider multiple spaces for different workflows
Monetization:
- Keep affiliate links updated
- Track performance metrics
- A/B test different message formats
π Next Steps
- Create your HuggingFace Space using this guide
- Upload the provided files
- Configure your environment variables
- Test the crypto alert workflows
- Start earning with affiliate links!
Your private n8n instance will be running 24/7, monitoring crypto prices and sending monetized alerts to your Telegram channel - completely free on HuggingFace Spaces!
Ready to create your own private n8n automation empire? π