PDF Google Drive Downloader v1.1


Report a problem

Content text Hướng Dẫn Setup n8n trên TVBox, Mini PC (UNT401H...) — Chạy domain riêng qua Cloudflare Tunne l Tài liệu nội bộ DPS.MEDIA

Tài liệu nội bộ DPS.MEDIA Hướng Dẫn Setup n8n trên TVBox, Mini PC (UNT401H...) — Chạy domain riêng qua Cloudflare Tunnel Hôm trước mình có chia sẻ cách setup n8n trên một số dòng TVBox / Mini PC giá rẻ. Nhiều anh em quan tâm nên mình viết lại hướng dẫn chi tiết để mọi người có thể tự thực hiện. Lưu ý chung ● Cách này phù hợp cho nhu cầu dev, lab, home use, học tập. ● Nếu cần chạy production thực sự (chạy nhiều flow), nên ưu tiên sử dụng VPS để đảm bảo hiệu suất và độ ổn định. Thiết bị tham khảo cấu hình 300k Mình hay tìm trên Shopee, không bán thiết bị. Link tham khảo: https://s.shopee.vn/2B2KrmfEa1 ● Ví dụ thiết bị: Mini PC UNT401H ● CPU: Amlogic S905L3 hoặc S905X3 ● RAM: 2GB ● eMMC: 8GB ● Hệ điều hành: Armbian (Debian based) 1. Kết nối mạng và truy cập box Cắm nguồn, kết nối mạng ● Cắm nguồn cho TVBox / Mini PC. ● Cắm dây LAN từ box vào modem/router (ưu tiên dùng LAN, Wifi trên các TVBox mini thường yếu).
Tài liệu nội bộ DPS.MEDIA Xác định địa chỉ IP box ● Đăng nhập vào trang quản lý modem/router. ● Truy cập mục Danh sách thiết bị / LAN Devices / DHCP Clients List. ● Tìm địa chỉ IP được cấp phát cho box. ● Ghi nhớ IP để SSH vào thiết bị. SSH vào box ssh [email protected] ● User mặc định: root ● Password mặc định: 1234 (nên thay đổi sau lần đầu đăng nhập). 2. Cài đặt các tiện ích cơ bản apt update && apt install -y curl wget sudo lsb-release gnupg nano unzip htop git 3. Cài đặt Docker và Docker Compose apt install -y docker.io docker-compose systemctl enable docker systemctl start docker docker --version docker compose version 4. Cài đặt Cloudflared Tunnel Client wget -O cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloud
Tài liệu nội bộ DPS.MEDIA flared-linux-arm64.deb apt install ./cloudflared.deb cloudflared --version 5. Đăng nhập Cloudflare Tunnel cloudflared tunnel login ● Mở link → đăng nhập Cloudflare → cấp quyền → quay lại. 6. Tạo Tunnel cloudflared tunnel create n8n-tunnel 7. Tạo file cấu hình config.yml cho Tunnel mkdir -p /etc/cloudflared nano /etc/cloudflared/config.yml Ví dụ file mẫu: tunnel: f4c7fcd6-xxxx-xxxx-xxxx-xxxxxxxxxxxx credentials-file: /root/.cloudflared/f4c7fcd6-xxxx-xxxx-xxxx-xxxxxxxxxxxx.json ingress: - hostname: n8n.dps.media service: http://localhost:5678 - service: http_status:404 8. Khởi động Cloudflared Tunnel service
Tài liệu nội bộ DPS.MEDIA cloudflared service install systemctl enable cloudflared systemctl start cloudflared systemctl status cloudflared 9. Chuẩn bị cài đặt n8n mkdir -p /opt/n8n cd /opt/n8n mkdir -p /opt/n8n/data chown -R 1000:1000 /opt/n8n/data ls -ld /opt/n8n/data 10. Tạo file docker-compose.yml nano /opt/n8n/docker-compose.yml Ví dụ file mẫu: services: n8n: container_name: n8n image: n8nio/n8n:1.86.0 restart: always user: node ports: - "5678:5678" environment: - NODE_ENV=production - N8N_ENCRYPTION_KEY= - N8N_VERSION=1.86.0 - N8N_DEFAULT_BINARY_DATA_MODE=filesystem - N8N_BINARY_DATA_STORAGE_PATH=/data/binaryData - N8N_AVAILABLE_BINARY_DATA_MODES=filesystem - WEBHOOK_URL=https://n8n.dps.media - N8N_HOST=localhost - N8N_PROTOCOL=http - N8N_PORT=5678 - N8N_EDITOR_BASE_URL=https://n8n.dps.media

Related document

x
Report download errors
Report content



Download file quality is faulty:
Full name:
Email:
Comment
If you encounter an error, problem, .. or have any questions during the download process, please leave a comment below. Thank you.