Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

CloudPaste

> DevOps
Open source

️ Serverless 自托管的文件管理与文本分享工具/网盘,支持多存储聚合管理和WebDAV 服务挂载。兼容 S3、WebDAV、OneDrive、Google Drive、Telegram、HF、GitHub 等。内置 Markdown 编辑器、30+文件格式预览。支持 Cloudflare Worker

2.6K stars0 likes2 views
WebsiteGitHub

About

CloudPaste

Showcase • ✨ Features • Deployment Guide • Tech Stack • Development • License

Showcase

✨ Core Features

Cloudflare Native Architecture

  • Edge Computing: Based on Cloudflare Workers, WorkFlow, and D1 database, with 300+ global nodes for nearby responses
  • Zero Maintenance: No server management required, automatic scaling, pay-per-request billing
  • Integrated Deployment: Frontend and backend packaged in the same Worker, saving time and effort
  • Separate Deployment: Optional frontend-backend separation, flexible to adapt to personal needs

Multi-Storage Support

  • S3 Compatible: Cloudflare R2, Backblaze B2, AWS S3, Alibaba Cloud OSS, Tencent Cloud COS, MinIO, etc.
  • Cloud Storage Integration: WebDAV, OneDrive, Google Drive, Telegram, Discord Bot, HuggingFace Database, GitHub API/Releases (read-only), etc.
  • Local Storage: Docker deployment supports local file system
  • Smart Upload: Frontend pre-signed direct upload + streaming upload + chunked resumable upload, with real-time progress display, minimizing CF limitations
  • File Preview: Direct preview support for 30+ formats (images, videos, audio, PDF, Office, code, e-books, etc.), others can be previewed through external IFrame embedding KKFileview
  • Scheduled Tasks: Support for automated tasks like cleaning upload sessions, storage synchronization, search index rebuilding, etc.
  • Unified Management: Visual configuration for multiple storage, flexible switching of default storage sources

Powerful Markdown Editor

  • Vditor Integration: Support for GitHub-style Markdown, math formulas, flowcharts, mind maps
  • Real-time Preview: WYSIWYG editing experience
  • Multi-format Export: One-click export to PDF, HTML, PNG, Word
  • Secure Sharing: Password protection, expiration time, access count limits
  • Raw Direct Links: Similar to GitHub Raw, suitable for configuration file hosting

WebDAV Protocol Support

  • Standard Protocol: Supports mounting as a network drive with any WebDAV client
  • Complete Operations: Directory creation, file upload, deletion, renaming, moving
  • Permission Control: API key authorization, fine-grained access control
  • Cache Optimization: Configurable TTL, reducing upstream requests

Flexible Permission Management

  • API Keys: Create multi-permission read/write keys, bound to specific storage paths
  • Time Control: Custom validity period, automatic expiration and manual revocation
  • JWT Authentication: Secure administrator authentication system
  • PWA Support: Can be installed as a desktop application, usable offline

Multiple Deployment Methods

  • Automatic Deployment: One-click deployment via GitHub Actions, supports automatic triggering
  • Manual Deployment: Wrangler CLI deployment, flexible and controllable
  • Docker Deployment: Frontend and backend images + Docker Compose one-click startup
  • Multi-platform: Supports Cloudflare, Vercel, ClawCloud, HuggingFace,etc.

Deployment Guide

Prerequisites

Before starting deployment, please ensure you have prepared the following:

  • Cloudflare account (required)
  • If using R2: Activate Cloudflare R2 service and create a bucket (requires payment method)
  • If using Vercel: Register for a Vercel account
  • Configuration information for other S3 storage services:
    • S3_ACCESS_KEY_ID
    • S3_SECRET_ACCESS_KEY
    • S3_BUCKET_NAME
    • S3_ENDPOINT

The following tutorial may be outdated. For specific details, refer to: Cloudpaste Online Deployment Documentation

View Complete Deployment Guide

Table of Contents

  • Action Automated Deployment
    • Deployment Architecture Selection
    • Configure GitHub Repository
    • Unified Deployment Tutorial (Recommended)
    • Separated Deployment Tutorial
  • Manual Deployment
    • Unified Manual Deployment (Recommended)
    • Separated Manual Deployment
  • ClawCloud CloudPaste Deployment Tutorial

Action Automated Deployment

Using GitHub Actions enables automatic deployment of your application after code is pushed. CloudPaste offers two deployment architectures for you to choose from.

Deployment Architecture Selection

Unified Deployment (Recommended)

Frontend and backend deployed on the same Cloudflare Worker

✨ Advantages:

  • Same Origin - No CORS issues, simpler configuration
  • Lower Cost - Navigation requests are free, saving 60%+ costs compared to separated deployment
  • Simpler Deployment - Deploy frontend and backend in one go, no need to manage multiple services
  • Better Performance - Frontend and backend on the same Worker, faster response time

Separated Deployment

Backend deployed to Cloudflare Workers, frontend deployed to Cloudflare Pages

✨ Advantages:

  • Flexible Management - Independent deployment, no mutual interference
  • Team Collaboration - Frontend and backend can be maintained by different teams
  • Scalability - Frontend can easily switch to other platforms (e.g., Vercel)

Configure GitHub Repository

1️⃣ Fork or Clone Repository

Visit and Fork the repository: https://github.com/ling-drag0n/CloudPaste

2️⃣ Configure GitHub Secrets

Go to your GitHub repository settings: Settings → Secrets and variables → Actions → New repository secret

Add the following Secrets:

Secret Name Required Purpose
CLOUDFLARE_API_TOKEN ✅ Cloudflare API token (requires Workers, D1, and Pages permissions)
CLOUDFLARE_ACCOUNT_ID ✅ Cloudflare account ID
ENCRYPTION_SECRET ❌ Key for encrypting sensitive data (will be auto-generated if not provided)
ACTIONS_VAR_TOKEN ✅ GitHub Token for deployment control panel (required only when using the control panel, otherwise skip)

3️⃣ Obtain Cloudflare API Token

Get API Token:

  1. Visit Cloudflare API Tokens
  2. Click Create Token
  3. Select Edit Cloudflare Workers template
  4. Add additional permissions:
    • Account → D1 → Edit
    • Account → Cloudflare Pages → Edit (if using separated deployment)
  5. Click Continue to summary → Create Token
  6. Copy the Token and save it to GitHub Secrets

Get Account ID:

  1. Visit Cloudflare Dashboard
  2. Find Account ID in the right sidebar
  3. Click to copy and save to GitHub Secrets

4️⃣ (Optional) Configure Deployment Control Panel

If you want to use the visual control panel to manage auto-deployment switches, you need additional configuration:

Create GitHub Personal Access Token:

  1. Visit GitHub Token Settings
  2. Click Generate new token → Generate new token (classic)
  3. Set Token name (e.g., CloudPaste Deployment Control)
  4. Select permissions:
    • ✅ repo (Full repository access)
    • ✅ workflow (Workflow permissions)
  5. Click Generate token
  6. Copy the Token and save as Secret ACTIONS_VAR_TOKEN

Using the Control Panel:

  1. Go to repository Actions tab
  2. In the left workflow list, click ️ Deployment Control Panel
  3. Click Run workflow → Run workflow on the right
  4. In the popup, select the deployment method to enable/disable
  5. Click Run workflow to apply configuration
  6. After updating the switch state, the control panel will automatically trigger the corresponding deployment workflow once (whether it actually deploys is decided by the current switch state)

Unified Deployment Tutorial (Recommended)

Deployment Steps

1️⃣ Configure GitHub Secrets (refer to the configuration section above)

2️⃣ Trigger Deployment Workflow

Method 1: Manual Trigger (recommended for first deployment)

  • Go to repository Actions tab
  • Click Deploy SPA CF Workers[一体化部署] on the left
  • Click Run workflow on the right → select main branch → Run workflow

Method 2: Auto Trigger

  • Use the deployment control panel to enable SPA Unified Auto Deploy
  • After that, deployment will be triggered automatically when pushing code to frontend/ or backend/ directory to main branch

Note: When you manually run Deploy SPA CF Workers[一体化部署] from the Actions page, it will always deploy once regardless of the auto-deploy switch. Automatic behavior (push or control panel triggered) is still controlled by the SPA_DEPLOY switch.

3️⃣ Wait for Deployment to Complete

The deployment process takes about 3-5 minutes. The workflow will automatically complete the following steps:

  • ✅ Build frontend static assets
  • ✅ Install backend dependencies
  • ✅ Create/verify D1 database
  • ✅ Initialize database schema
  • ✅ Set encryption secret
  • ✅ Deploy to Cloudflare Workers

4️⃣ Get Deployment URL

After successful deployment, you will see output similar to this in the Actions log:

Published cloudpaste-spa (X.XX sec)
  https://cloudpaste-spa.your-account.workers.dev

Your CloudPaste has been successfully deployed! Visit the URL above to use it.

Deployment Complete

Visit your application: https://cloudpaste-spa.your-account.workers.dev

Post-deployment Configuration:

  1. The database will be automatically initialized on first visit
  2. Log in with the default admin account:
    • Username: admin
    • Password: admin123
  3. ⚠️ Important: Change the default admin password immediately!
  4. Configure your S3-compatible storage service in the admin panel
  5. (Optional) Bind a custom domain in Cloudflare Dashboard

Advantages Recap:

  • ✅ Same origin for frontend and backend, no CORS issues
  • ✅ Navigation requests are free, reducing costs by 60%+
  • ✅ Deploy in one go, simple management

Separated Deployment Tutorial

If you choose separated deployment, follow these steps:

Backend Deployment

1️⃣ Configure GitHub Secrets (refer to the configuration section above)

2️⃣ Trigger Backend Deployment

Method 1: Manual Trigger

  • Go to repository Actions tab
  • Click Deploy Backend CF Workers[Worker后端分离部署] on the left
  • Click Run workflow → Run workflow

Method 2: Auto Trigger

  • Use the deployment control panel to enable Backend Separated Auto Deploy
  • Deployment will be triggered automatically when pushing backend/ directory code

3️⃣ Wait for Deployment to Complete

The workflow will automatically complete:

  • ✅ Create/verify D1 database
  • ✅ Initialize database schema
  • ✅ Set encryption secret
  • ✅ Deploy Worker to Cloudflare

4️⃣ Record Backend URL

A

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptcloudflarecloudflare-workersdockerfile-browser

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理