A simple data sync service for KISS-Translator.
There are two deployment methods to choose from:
- Cloudflare account
- Install
git
+nodejs
locally when deploying - A domain name (optional)
-
Log in to the Cloudflare management panel and go to the path
dashboard > select Workers & Pages > KV
. Create a namespace with whatever name you want. After creation, anamespace ID
will be obtained. -
Clone the project, modify the
wrangler.toml
file, and replace thenamespace ID
obtained in the previous step to the position ofid
.
# wrangler.toml
kv_namespaces = [
{ binding = "KV", id = "replace you id here!!!" }
]
- Execute the following commands in sequence. When the execution is completed, you will be asked to set your own password. You may need to connect to Cloudflare authorization when deploying for the first time.
yarn install
yarn deploy
- (Optional) Log in to the Cloudflare management panel, enter the path
dashboard > select Workers & Pages > kiss-worker
, click theTrigger
tab, and then clickAdd Custom Domain
to add a domain name to access.
- Own server
docker
related knowledge
- Clone the project and modify the
docker-compose.yml
file to change the characters afterAPP_KEY
to your own password.
version: "3.1"
services:
kiss-worker:
image: fishjar/kiss-worker
environment:
PORT: 8080
APP_KEY: 123456 # Change password here
APP_DATAPATH: data
ports:
- 8080:8080
volumes:
- ./data:/app/data
- Execute the following command to start
docker-compose up -d