-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 镜像服务 | ||
|
||
## 首页生成 | ||
|
||
镜像站主页是静态的,由 <https://git.lug.ustc.edu.cn/mirrors/mirrors-index> 脚本生成。 | ||
|
||
crontab 会定时运行该脚本,生成首页和 [mirrorz 项目](https://mirrorz.org/)需要的数据。 | ||
|
||
在首页展示的「获取安装镜像」、「获取开源软件」、「反向代理列表」分别由 config 内配置指定,「文件列表」内容则会从[同步程序 yuki](https://github.com/ustclug/yuki) 的 api 中获取。 | ||
|
||
## HTTP 服务 | ||
|
||
Mirrors 使用 OpenResty(一个打包 Nginx 和一堆有用的 Lua 模块的软件包)提供 HTTP 服务。 | ||
|
||
配置文件位于 LUG GitLab 上:<https://git.lug.ustc.edu.cn/mirrors/nginx-config>,此仓库对应 mirrors 上的 `/etc/nginx` 目录。 | ||
|
||
### 请求限制策略 | ||
|
||
见[限制策略](limiter.md)。 | ||
|
||
## Rsync 服务 | ||
|
||
未完待续。 | ||
|
||
## 反向代理服务 | ||
|
||
未完待续。 | ||
|
||
## FTP 服务(已废弃) | ||
|
||
Mirrors 曾经提供 FTP 服务,由 vsftpd 提供。在将主力服务器从 mirrors2 迁移至 mirrors4 时废弃,即 mirrors4 上从未安装配置过 vsftpd(但 mirrors2 上还留存有配置文件)。 | ||
|
||
由于年代久远且我们不再打算恢复 FTP 服务,这部分文档也就咕咕咕了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters