{"id":13432220,"url":"https://github.com/pchpub/BiliRoaming-Rust-Server","last_synced_at":"2025-03-16T23:30:56.725Z","repository":{"id":47702098,"uuid":"515955416","full_name":"pchpub/BiliRoaming-Rust-Server","owner":"pchpub","description":"A rust server","archived":false,"fork":false,"pushed_at":"2024-06-17T07:41:09.000Z","size":860,"stargazers_count":102,"open_issues_count":9,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-27T11:50:06.286Z","etag":null,"topics":["biliroaming","rust","server"],"latest_commit_sha":null,"homepage":"https://嘉然批.发超市.icu","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pchpub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-20T11:33:20.000Z","updated_at":"2024-10-26T13:45:15.000Z","dependencies_parsed_at":"2024-10-27T11:47:10.517Z","dependency_job_id":"7be87017-f533-4e9f-afca-926f1646b672","html_url":"https://github.com/pchpub/BiliRoaming-Rust-Server","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchpub%2FBiliRoaming-Rust-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchpub%2FBiliRoaming-Rust-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchpub%2FBiliRoaming-Rust-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchpub%2FBiliRoaming-Rust-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pchpub","download_url":"https://codeload.github.com/pchpub/BiliRoaming-Rust-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949860,"owners_count":20373653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["biliroaming","rust","server"],"created_at":"2024-07-31T02:01:09.519Z","updated_at":"2025-03-16T23:30:56.422Z","avatar_url":"https://github.com/pchpub.png","language":"Rust","funding_links":[],"categories":["其他"],"sub_categories":["直播脚本"],"readme":"# BiliRoaming-Rust-Server\n## [Features]\n\n* local black\u0026white list\n* check sign\n* support config.json \u0026 config.yaml\n* support http,https,socks5.. proxy \n* remove need_vip \u0026 need_login\n* support auto_update\n* read the cfg from json\n* health check\n* https support\n* 向后兼容\n\n## [TODO] \n\n* ~~/intl/gateway/v2/app/search/v2?~~ web脚本已弃用\n* ~~/intl/gateway/v2/ogv/view/app/season2?~~ web脚本已弃用\n* ~~/intl/gateway/v2/ogv/view/app/episode?~~ web脚本已弃用\n* ~~/pgc/view/web/season?~~ web脚本已弃用\n* web panel\n* local search\n* to be faster\n\n## [使用说明]\n\n### 1. 使用一键安装器\n* 将域名解析至您的服务器\n*  `wget -c -t 5 https://github.com/pchpub/biliroaming-rust-server-installer/releases/download/v0.1.0/biliroaming-rust-server-installer \u0026\u0026 chmod 777 biliroaming-rust-server-installer \u0026\u0026 ./biliroaming-rust-server-installer` \n* 按提示操作 默认回车 (推荐使用 auto_proxy 并输入 clash 订阅)\n* (如果没开启自动https)使用 Nginx 反代安装器最后给的URL/(开启了自动https)不用安装nginx, 直接使用\n* Enjoy~\n\n### 2. 使用已编译的二进制文件\n* 下载二进制文件(使用Action编译的较新)\n  * 从[Release](https://github.com/pchpub/BiliRoaming-Rust-Server/releases)中下载二进制文件及 config.json\n  * 从[Action](https://github.com/pchpub/BiliRoaming-Rust-Server/actions/workflows/ci.yml)中下载二进制文件,从仓库中下载config.json\n* 安装 Redis\n  * 使用宝塔安装 Redis\n  * `apt install redis` #Ubuntu\u0026Debian\n  * `yum install redis` #CentOS\n* 填写 config.json\n*  `./biliroaming_rust_server` 启动服务端\n* 使用 Nginx 反代 `http://127.0.0.1:2662` (端口号可在 config.json 中修改)\n* Enjoy~\n\n### 3. 自行编译二进制文件\n*  `git clone https://github.com/pchpub/BiliRoaming-Rust-Server.git` 下载源代码\n* 安装 Cargo\n  * `apt install cargo` #Ubuntu\u0026Debian\n  * `yum install cargo` #CentOS\n* `cd BiliRoaming-Rust-Server` 进入源代码目录下\n* `cargo build --profile=fast` 编译二进制文件\n* 安装 Redis\n  * 使用宝塔安装 Redis\n  * `apt install redis` #Ubuntu\u0026Debian\n  * `yum install redis` #CentOS\n* `cp config.example.json config.json` 复制配置文件并重命名\n* `cp target/fast/biliroaming_rust_server biliroaming_rust_server`将编译好的二进制文件复制至项目根目录\n* 填写 config.json\n* 使用 `./biliroaming_rust_server` 启动服务端\n* 使用 Nginx 反代 `http://127.0.0.1:2662` (端口号可在 config.json 中修改)\n* Enjoy~\n\n### 4. 使用一键安装脚本\n*  `curl -sSO https://raw.githubusercontent.com/pchpub/BiliRoaming-Rust-Server/main/install.sh \u0026\u0026 sudo bash install.sh` \n* 按提示操作 默认选y（yes）\n* 使用 Nginx 反代 `http://127.0.0.1:2662` (端口号可在 config.json 中修改)\n* Enjoy~\n## [温馨提示]\n* config中code为0时的缓存设置已无效,缓存时间由播放链接deadline决定\n* 非常不建议将缓存时间设为0（永久缓存）,可能会导致后续错误无法自动恢复\n* 目前服务端只是小范围测试,有已知但未修复的严重bug,可能会导致您的机子更容易-412\n\n## [API]\n\n* /pgc/player/api/playurl\n* /pgc/player/web/playurl\n* /intl/gateway/v2/ogv/playurl\n* /intl/gateway/v2/app/search/type\n* /x/v2/search/type\n* /x/web-interface/search/type\n* /intl/gateway/v2/ogv/view/app/season\n* /x/intl/passport-login/oauth2/refresh_token\n* /intl/gateway/v2/app/subtitle\n* /api/accesskey\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchpub%2FBiliRoaming-Rust-Server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpchpub%2FBiliRoaming-Rust-Server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchpub%2FBiliRoaming-Rust-Server/lists"}