You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2b91aac66f | 4 years ago | |
---|---|---|
intl/gateway/v2 | 4 years ago | |
pgc/player/api/playurl | 4 years ago | |
README.md | 4 years ago | |
Server_v2.7.zip | 4 years ago | |
blacklist.php | 4 years ago | |
cache.php | 4 years ago | |
cache.sql | 4 years ago | |
config.php | 4 years ago | |
hlw.php | 4 years ago | |
index.php | 4 years ago | |
log.php | 4 years ago | |
none.php | 4 years ago | |
tom.php | 4 years ago | |
whitelist.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