GithubHelp home page GithubHelp logo

rust-api-server's Introduction

rustDesk自建api-server

该项目只是 rustDesk API服务,需配置 rustDesk 自建服务器使用。
没有rustDesk API服务,只部署rustDesk 自建服务器也能正常使用,只是没有账号体系。
部署 rustDesk API服务 后可以登录账号,自动加载历史添加设备。

兼容:v1.1.9, v1.2.2 v1.2.3版本
只完成最小闭环,部分小功能未实现

自建服务器文档

rustDesk API服务填写

克隆代码

git clone https://github.com/kongbg/rust-api-server.git

进入项目目录

cd  /rust-api-server

安装依赖

npm install

本地启动

npm run dev

rustDesk API服务器填写下面地址

http://ip:21114

构建docker(前提是本机安装了docker)

docker build -t rust-api-server .

pm2部署

克隆代码
    git clone https://github.com/kongbg/rust-api-server.git
进入项目目录
    cd  /rust-api-server
安装依赖
    npm install
安装pm2
    npm install -g pm2
启动服务
    npm run pm2

docker部署

docker run -td --name rust-api-server --restart=always -p 21114:21114 -v /mnt/user/app/rust-api-server/data:/usr/src/app/src/data kongbg/rust-api-server

注意事项

1.6200端口要放开服务器防火墙
2.默认账号密码:admin/admin. 可在controllers/rust.js 的19-20行修改

TODO

1. jwt验证
2. 新增/删除用户
3. 标签改背景颜色

rust-api-server's People

Contributors

kongbg 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.