pull/1/head
david082321 4 years ago committed by GitHub
parent 0f3bc824b9
commit bae9287b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,2 +1,70 @@
# BiliRoaming-PHP-Server
哔哩漫游 PHP 解析服务器
# BiliRoaming-PHP-Server
哔哩漫游 PHP 解析服务器
自建解析服务器参考配置
## 下载:
* [全版本](https://github.com/david082321/BiliRoaming-PHP-Server/raw/main/Server_v2.1.zip)
* 默认为「黑名单-葫芦娃」模式,若要切换到其他模式,请看底下说明。
## 用法:
直接放到网站根目录,例如 wwwroot 或 public_html 或 private_html
(若您使用白名单模式,请查看最后面的修改白名单方法)
## 示例:
![示例](https://i.loli.net/2021/01/10/VwJ5D1GoRBbyfmq.jpg)
(完成)
------
## (非必要步骤) 切换到其他模式
* 默认为「黑名单-葫芦娃」模式,若您想使用「本地白名单」或是「无任何限制」等其他模式,请手动修改 config.php
* 每行后面都有注释提供参考
## (非必要步骤)白名单
* 如果你选择白名单模式,请修改 whitelist.php 的第 3 行,改成你要放行的 uid
* 可自行添加或减少白名单
* 修改时注意使用英文的 , 和 "
## (非必要步骤) 防止重复的 301 转址
### apache
* [下载这个,然后放在网站根目录 (.htaccess) ](https://github.com/david082321/BiliRoaming-PHP-Server/blob/main/.htaccess)
### 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;
}

Loading…
Cancel
Save