Code Monkey home page Code Monkey logo

fileworker's Introduction

FileWorker

FileWorker 是一个轻量级的文件管理和在线剪贴板,基于 Cloudflare Pages 和 R2。

✏️部署

  1. Fork 本仓库

  2. 部署 Pages

    Cloudflare DashBoard -> Workers & Pages -> Create application -> Pages ->

    Connect to Git -> 选择 Fork 的仓库 ->

    设置 Build command: npm run build

    设置 Build output directory: dist

    点击 Save and Deploy

  3. 创建 R2 存储桶

    Cloudflare DashBoard -> R2 -> Create Bucket

  4. 获取 R2 存储桶的信息

    Cloudflare DashBoard -> R2 -> Manage R2 API Tokens -> Create API token

    选择 Object Read & Write 或者 Admin Read & Write。

    创建后记录 Access Key IDSecret Access Key。 以及存储桶的Endpoint(格式为:https://{account_id}.r2.cloudflarestorage.com

    这些信息不会再次显示。

  5. 设置环境变量

    Cloudflare DashBoard -> {Your Worker} -> Settings -> Environment Variables -> (Production)Add variables

    添加以下环境变量:

    1. S3 地区,对于 R2 存储桶可以直接设置为 auto

      REGION=auto

    2. 存储桶名称

      BUCKET=store

    3. 存储桶的 Endpoint

      ENDPOINT=https://{account_id}.r2.cloudflarestorage.com

    4. Access Key ID

      ACCESS_KEY_ID=31415926535897932384626433832795

    5. Secret Access Key

      SECRET_ACCESS_KEY=3141592653589793238462643383279502884197169399375105820974944592

    6. 访问密码(自己设置)

      PASSWORD=123456

  6. 重新部署

    Cloudflare DashBoard -> {Your Worker} -> Deployments -> All deployments -> Retry deployment

💡使用

index

clip

file

manage

fileworker's People

Contributors

yllhwa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.