Giter Club home page Giter Club logo

biliroaming-rust-server's Introduction

BiliRoaming-Rust-Server

[Features]

  • local black&white list
  • check sign
  • support config.json & config.yaml
  • support http,https,socks5.. proxy
  • remove need_vip & need_login
  • support auto_update
  • read the cfg from json
  • health check
  • https support
  • 向后兼容

[TODO]

  • /intl/gateway/v2/app/search/v2? web脚本已弃用
  • /intl/gateway/v2/ogv/view/app/season2? web脚本已弃用
  • /intl/gateway/v2/ogv/view/app/episode? web脚本已弃用
  • /pgc/view/web/season? web脚本已弃用
  • web panel
  • local search
  • to be faster

[使用说明]

1. 使用一键安装器

  • 将域名解析至您的服务器
  • wget -c -t 5 https://github.com/pchpub/biliroaming-rust-server-installer/releases/download/v0.1.0/biliroaming-rust-server-installer && chmod 777 biliroaming-rust-server-installer && ./biliroaming-rust-server-installer
  • 按提示操作 默认回车 (推荐使用 auto_proxy 并输入 clash 订阅)
  • (如果没开启自动https)使用 Nginx 反代安装器最后给的URL/(开启了自动https)不用安装nginx, 直接使用
  • Enjoy~

2. 使用已编译的二进制文件

  • 下载二进制文件(使用Action编译的较新)
    • Release中下载二进制文件及 config.json
    • Action中下载二进制文件,从仓库中下载config.json
  • 安装 Redis
    • 使用宝塔安装 Redis
    • apt install redis #Ubuntu&Debian
    • yum install redis #CentOS
  • 填写 config.json
  • ./biliroaming_rust_server 启动服务端
  • 使用 Nginx 反代 http://127.0.0.1:2662 (端口号可在 config.json 中修改)
  • Enjoy~

3. 自行编译二进制文件

  • git clone https://github.com/pchpub/BiliRoaming-Rust-Server.git 下载源代码
  • 安装 Cargo
    • apt install cargo #Ubuntu&Debian
    • yum install cargo #CentOS
  • cd BiliRoaming-Rust-Server 进入源代码目录下
  • cargo build --profile=fast 编译二进制文件
  • 安装 Redis
    • 使用宝塔安装 Redis
    • apt install redis #Ubuntu&Debian
    • yum install redis #CentOS
  • cp config.example.json config.json 复制配置文件并重命名
  • cp target/fast/biliroaming_rust_server biliroaming_rust_server将编译好的二进制文件复制至项目根目录
  • 填写 config.json
  • 使用 ./biliroaming_rust_server 启动服务端
  • 使用 Nginx 反代 http://127.0.0.1:2662 (端口号可在 config.json 中修改)
  • Enjoy~

4. 使用一键安装脚本

  • curl -sSO https://raw.githubusercontent.com/pchpub/BiliRoaming-Rust-Server/main/install.sh && sudo bash install.sh
  • 按提示操作 默认选y(yes)
  • 使用 Nginx 反代 http://127.0.0.1:2662 (端口号可在 config.json 中修改)
  • Enjoy~

[温馨提示]

  • config中code为0时的缓存设置已无效,缓存时间由播放链接deadline决定
  • 非常不建议将缓存时间设为0(永久缓存),可能会导致后续错误无法自动恢复
  • 目前服务端只是小范围测试,有已知但未修复的严重bug,可能会导致您的机子更容易-412

[API]

  • /pgc/player/api/playurl
  • /pgc/player/web/playurl
  • /intl/gateway/v2/ogv/playurl
  • /intl/gateway/v2/app/search/type
  • /x/v2/search/type
  • /x/web-interface/search/type
  • /intl/gateway/v2/ogv/view/app/season
  • /x/intl/passport-login/oauth2/refresh_token
  • /intl/gateway/v2/app/subtitle
  • /api/accesskey

biliroaming-rust-server's People

Contributors

pchpub avatar cxw620 avatar kimmyxyc avatar cielneko avatar chitang233 avatar zjns avatar guaguaya66 avatar dependabot[bot] 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.