1845e640d1 | 4 years ago | |
---|---|---|
intl/gateway/v2 | 4 years ago | |
pgc/player/api/playurl | 4 years ago | |
404.php | 4 years ago | |
README.md | 4 years ago | |
Server_v2.9.4.zip | 4 years ago | |
auth.php | 4 years ago | |
cache.php | 4 years ago | |
cache.sql | 4 years ago | |
config.php | 4 years ago | |
index.php | 4 years ago | |
log.php | 4 years ago | |
replace.php | 4 years ago |
README.md
BiliRoaming-PHP-Server
哔哩漫游 PHP 解析服务器
自建解析服务器参考配置
下载:
用法:
-
直接放到网站根目录,例如 wwwroot 或 public_html 或 private_html
-
默认为「黑名单-猫和老鼠」模式,若要切换到其他模式,请看底下说明。
示例:
(完成)
(非必要步骤) 切换到其他模式
-
默认为「黑名单-猫和老鼠」模式,若您想使用「黑名单」或是「黑名单-葫芦娃」或是「本地白名单」或是「无任何限制」等其他模式,请手动修改 config.php
-
每行后面都有注释提供参考
(非必要步骤) 防止重复的 301 转址
apache
nginx
-
在配置文件中加入以下代码
server
{
#...(中间略过,请加在配置文件最底下)...
rewrite "^/pgc/player/api/playurl?(.*)$" /pgc/player/api/playurl/index.php?$1 last;
rewrite "^/intl/gateway/v2/ogv/playurl?(.*)$" /intl/gateway/v2/ogv/playurl/index.php?$1 last;
rewrite "^/intl/gateway/v2/app/search/type?(.*)$" /intl/gateway/v2/app/search/type/index.php?$1 last;
rewrite "^/intl/gateway/v2/app/subtitle?(.*)$" /intl/gateway/v2/app/subtitle?$1 last;
}
(非必要步骤) 缓存
-
安装 MySQL
-
配置 config.php 的缓存设置
-
导入 cache.sql
文件功能介绍
├-intl/gateway/v2
│ ├-app
│ │ ├-search/type/index.php (转发到根目录的 index.php 处理)
│ │ └-subtitle/index.php (转发到根目录的 index.php 处理)
│ └-ogv/playurl/index.php (转发到根目录的 index.php 处理)
├-pgc/player/api/playurl/index.php (转发到根目录的 index.php 处理)
├-404.php (肥肠抱歉视频)
├-auth.php (鉴权)
├-cache.php (缓存)[仅缓存使用]
├-cache.sql (导入MySQL用的)[仅缓存使用]
├-config.php (用户设置)
├-index.php (接受上面index.php) <---主要入口在这里
├-log.php (缓存用户)[仅缓存使用]
└-replace.php (替换视频)