请注意,本文编写于 1361 天前,最后修改于 1106 天前,其中某些信息可能已经过时。
漫游相关
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
- 向后兼容
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-r ust-server-installer && ./biliroaming-rust-server-installer- 按提示操作 默认回车 (推荐使用 auto_proxy 并输入 clash 订阅)
- 使用 Nginx 反代安装器最后给的URL
- Enjoy~
2. 使用已编译的二进制文件
下载二进制文件(使用Action编译的较新)
安装 Redis
- 使用宝塔安装 Redis
apt install redis#Ubuntu&Debianyum 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&Debianyum install cargo#CentOS
cd BiliRoaming-Rust-Server进入源代码目录下cargo build --profile=fast编译二进制文件安装 Redis
- 使用宝塔安装 Redis
apt install redis#Ubuntu&Debianyum 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