save
This commit is contained in:
parent
3ab44d04e2
commit
419adaa71e
30
index.html
30
index.html
@ -114,24 +114,12 @@
|
||||
<title>GitHub 文件加速(PHP版本)</title>
|
||||
</head>
|
||||
<body class="flex">
|
||||
<a
|
||||
style="position: absolute; top: 0; right: 0"
|
||||
href="https://github.com/tlanyan/ghproxy"
|
||||
target="_blank"><img
|
||||
width="149"
|
||||
height="149"
|
||||
referrerpolicy="no-referrer"
|
||||
src="https://inews.gtimg.com/newsapp_ls/0/12025455907/0"
|
||||
alt="Fork me on GitHub"
|
||||
data-recalc-dims="1"
|
||||
/></a>
|
||||
<h1 style="margin-bottom: 10px">
|
||||
<img
|
||||
src="https://ae01.alicdn.com/kf/H2fc84859291347418b11091fe0e508b8v.png"
|
||||
style="width: 1.5em; margin-right: 0.2em; vertical-align: bottom"
|
||||
/>GitHub 文件加速(PHP版本)
|
||||
/>GitHub 文件加速
|
||||
</h1>
|
||||
<p style="margin-bottom: 40px;">本站仅供演示,如需可靠使用,请自行部署</p>
|
||||
<form
|
||||
action="./"
|
||||
method="get"
|
||||
@ -163,17 +151,31 @@
|
||||
</p>
|
||||
<p>分支文件:https://github.com/tlanyan/ghproxy/blob/main/index.html</p>
|
||||
<p>API请求:https://api.github.com/repos/reactphp/http/releases/latest</p>
|
||||
<h2>您还可以:</h2>
|
||||
<p>在任意github链接前加入https://ghproxy.layso.de/即可加速下载</p>
|
||||
<p>如:https://ghproxy.layso.de/https://github.com/tlanyan/yii2/archive/2.0.4.zip</p>
|
||||
</div>
|
||||
<div class="tips">
|
||||
<h2>注意事项:</h2>
|
||||
<p>
|
||||
右键复制出来的链接都是符合标准的,<strong>但不支持项目文件夹</strong>
|
||||
</p>
|
||||
<p>release、archive直接反代加速,文件会跳转至JsDelivr或cnpmjs.org加速下载</p>
|
||||
</div>
|
||||
<div class="tips">
|
||||
<h2>浏览器插件</h2>
|
||||
<p>
|
||||
Edge浏览器可以前往<a href="https://microsoftedge.microsoft.com/addons/detail/github%E5%8A%A0%E9%80%9F/alhnbdjjbokpmilgemopoomnldpejihb?hl=zh-CN" target="_blank">Edge插件市场</a>安装插件,在扩展选项的“加速列表”填写 https://ghproxy.layso.de/ 其他保持默认保存即可
|
||||
</p>
|
||||
<p>
|
||||
安装插件后访问github会自动展示加速下载链接
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
<p>
|
||||
本项目为 <a href="https://github.com/hunshcn/gh-proxy" target="_blank">gh-proxy</a> 的PHP版本,由 <a href="https://tlanyan.me" target="_blank">tlanyan</a> 基于 <a href="https://github.com/reactphp" target="_blank">ReactPHP</a> 开发
|
||||
</p>
|
||||
<p>
|
||||
由<a href="https://laysense.cn/">上海来笙信息科技有限公司</a>提供
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
10
index.php
10
index.php
@ -4,15 +4,15 @@ require(__DIR__ . '/vendor/autoload.php');
|
||||
define('ROOT', __DIR__);
|
||||
|
||||
// listen address, change to 0.0.0.0 to handle public requests
|
||||
define('ADDR', '127.0.0.1');
|
||||
define("PORT", 8080);
|
||||
define('ADDR', '0.0.0.0');
|
||||
define("PORT", 10500);
|
||||
|
||||
// use jsdelivr/cnpmjs
|
||||
define('JSDELIVR', true);
|
||||
define('CNPMJS', true);
|
||||
define('JSDELIVR', false);
|
||||
define('CNPMJS', false);
|
||||
|
||||
// download size limit, defaults to 2GB
|
||||
define('SIZE_LIMIT', 2 * 1024 * 1024 * 1024);
|
||||
define('SIZE_LIMIT', 10 * 1024 * 1024 * 1024);
|
||||
|
||||
|
||||
$loop = React\EventLoop\Factory::create();
|
||||
|
Loading…
Reference in New Issue
Block a user