This commit is contained in:
root 2024-11-23 05:46:17 -05:00
parent 3ab44d04e2
commit 419adaa71e
2 changed files with 21 additions and 19 deletions

View File

@ -114,24 +114,12 @@
<title>GitHub 文件加速PHP版本</title> <title>GitHub 文件加速PHP版本</title>
</head> </head>
<body class="flex"> <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"> <h1 style="margin-bottom: 10px">
<img <img
src="https://ae01.alicdn.com/kf/H2fc84859291347418b11091fe0e508b8v.png" src="https://ae01.alicdn.com/kf/H2fc84859291347418b11091fe0e508b8v.png"
style="width: 1.5em; margin-right: 0.2em; vertical-align: bottom" style="width: 1.5em; margin-right: 0.2em; vertical-align: bottom"
/>GitHub 文件加速PHP版本 />GitHub 文件加速
</h1> </h1>
<p style="margin-bottom: 40px;">本站仅供演示,如需可靠使用,请自行部署</p>
<form <form
action="./" action="./"
method="get" method="get"
@ -163,17 +151,31 @@
</p> </p>
<p>分支文件https://github.com/tlanyan/ghproxy/blob/main/index.html</p> <p>分支文件https://github.com/tlanyan/ghproxy/blob/main/index.html</p>
<p>API请求https://api.github.com/repos/reactphp/http/releases/latest</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>
<div class="tips"> <div class="tips">
<h2>注意事项:</h2> <h2>注意事项:</h2>
<p> <p>
右键复制出来的链接都是符合标准的,<strong>但不支持项目文件夹</strong> 右键复制出来的链接都是符合标准的,<strong>但不支持项目文件夹</strong>
</p> </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> </div>
</form> </form>
<p> <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> 开发 本项目为 <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>
<p>
<a href="https://laysense.cn/">上海来笙信息科技有限公司</a>提供
</p>
</body> </body>
</html> </html>

View File

@ -4,15 +4,15 @@ require(__DIR__ . '/vendor/autoload.php');
define('ROOT', __DIR__); define('ROOT', __DIR__);
// listen address, change to 0.0.0.0 to handle public requests // listen address, change to 0.0.0.0 to handle public requests
define('ADDR', '127.0.0.1'); define('ADDR', '0.0.0.0');
define("PORT", 8080); define("PORT", 10500);
// use jsdelivr/cnpmjs // use jsdelivr/cnpmjs
define('JSDELIVR', true); define('JSDELIVR', false);
define('CNPMJS', true); define('CNPMJS', false);
// download size limit, defaults to 2GB // 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(); $loop = React\EventLoop\Factory::create();