mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
Source code of the web interface of https://mirrors.tuna.tsinghua.edu.cn/
We are still experiencing malicious traffic downloading this file, 1TB of them from curl as of last 24h There are also constant downloads from wget, all of which have been blocked. Closes https://github.com/tuna/mirror-web/issues/333 |
||
|---|---|---|
| .github/workflows | ||
| _data | ||
| _includes | ||
| _layouts | ||
| _plugins | ||
| fancy-index | ||
| geninfo | ||
| help/_posts | ||
| news/_posts | ||
| static | ||
| .editorconfig | ||
| .gitignore | ||
| 404.html | ||
| Dockerfile.build | ||
| Dockerfile.dev | ||
| Gemfile | ||
| LICENSE | ||
| README.md | ||
| _config.yml | ||
| feed.xml | ||
| gen_robot.sh | ||
| help.html | ||
| index.html | ||
| legacy_index.html | ||
| news.html | ||
| status.html | ||
TUNA mirrors 主页
注意:如果使用本项目搭建开源镜像站,必须:
- 移除所有与清华大学和 TUNA 相关的内容,包括且不限于站名、logo 和各种文档中出现的所有文本和图形;
- 在网站首页恰当标注项目来源(
tuna/mirror-web); - 遵循 GPLv2 协议开放修改后的源代码;
运行 Demo
直接编译
本站使用 Jekyll 编写,并使用 babel 编译 ECMAScript6,因此必须安装 ruby >= 2.0 和 nodejs.
Build In Docker
cd mirror-web
docker build -t builden -f Dockerfile.build .
docker run -it -v /path/to/mirror-web/:/data builden
为正常运行,一些动态数据文件需要下载
wget https://mirrors.tuna.tsinghua.edu.cn/static/tunasync.json -O static/tunasync.json
mkdir -p static/status
wget https://mirrors.tuna.tsinghua.edu.cn/static/status/isoinfo.json -O static/status/isoinfo.json
之后 jekyll serve 即可运行 demo.
贡献文档
基本步骤
- Fork 本项目并 clone
- 创建分支
git checkout -b foo-doc - 在
help/_post中建立文档文件,文件名格式为年-月-日-名称.md - 用 markdown 语法编写文档
- 提交并推送代码
- 发送 Pull Request
写作规范
- 对于相对不知名的镜像项目,首先用一两句话介绍该项目
- 写明使用方法, 使用 Github Flavored Markdown 格式
- 中英文字符间应留一个空格
特殊用法
表单选择
例如 http://mirrors.tuna.tsinghua.edu.cn/help/mongodb/ 中,通过表单选择操作系统和版本号,建议直接使用 Vue.js