GithubHelp home page GithubHelp logo

deeplx-lb's Introduction

Vercel 一键部署

Deploy with Vercel

KV 数据库创建

方式一:Vercel KV(推荐,因为方便,个人用足够)

方式二:Upstash(量大管饱)

设置环境变量(Vercel KV 和 Upstash 二者选其一)

环境变量 说明
KV_REST_API_URL 默认使用
KV_REST_API_TOKEN 默认使用
UPSTASH_REDIS_REST_URL
UPSTASH_REDIS_REST_TOKEN
PASSWORD 密码验证,不设置时可匿名访问
IGNORE_KEYWORDS 关键字过滤添加的接口,逗号(英文)分隔

密码验证

设置了密码验证后,url需要带上password参数

如:http://127.0.0.1:1188/translate?password=[PASSWORD]

Docker 部署(自行修改环境变量,不然启动失败报错)

docker run -d -p "1188:1188" -e KV_REST_API_URL="" -e KV_REST_API_TOKEN="" -e PASSWORD="" -e IGNORE_KEYWORDS="" yelochick/deeplx-lb

或者

docker-compose up -d

沉浸式翻译

开发调试

拉取依赖

pnpm install

配置环境变量

根目录创建 .env 文件并填入环境变量

启动

pnpm start

deeplx-lb's People

Contributors

yelochick avatar hl128k 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.