Code Monkey home page Code Monkey logo

kiss-worker's Introduction

KISS-WORKER

适用于 KISS-Translator 的简单的数据同步服务。

有两种部署方式可供选择:

cloudflare workers 部署方式

前提条件

  • Cloudflare 帐号
  • 部署时本地安装 git + nodejs
  • 一个域名(可选)

部署步骤

1、登录 Cloudflare 管理面板,进入路径 dashboard > select Workers & Pages > KV。创建一个命名空间,名称随意。创建完成后将获得一个命名空间 ID

2、克隆项目,修改 wrangler.toml 文件,将前面步骤获取到的命名空间 ID 替换到id的位置。

# wrangler.toml
kv_namespaces = [
    { binding = "KV", id = "replace you id here!!!" }
]

3、依次执行下面的命令,执行完成会要求设定自己的密码。首次部署时可能需要连接到 Cloudflare 授权。

yarn install
yarn deploy

4、(可选)登录 Cloudflare 管理面板,进入路径 dashboard > select Workers & Pages > kiss-worker,点击 触发器选项卡,再点击添加自定义域添加访问的域名。

docker 部署方式

前提条件

  • 自有服务器
  • docker相关知识

部署步骤

1、克隆项目,并修改 docker-compose.yml 文件,将APP_KEY后面的字符修改为你自己的密码。

version: "3.1"
services:
  kiss-worker:
    image: fishjar/kiss-worker
    environment:
      PORT: 8080
      APP_KEY: 123456 # 修改这里的密码
      APP_DATAPATH: data
    ports:
      - 8080:8080
    volumes:
      - ./data:/app/data

2、执行以下命令启动

docker-compose up -d

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.