Skip to content

Commit

Permalink
mirrors: Consolidate services pages
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Apr 19, 2024
1 parent ca0a040 commit 7785fe9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
7 changes: 0 additions & 7 deletions docs/services/mirrors/genindex.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/services/mirrors/http.md

This file was deleted.

33 changes: 33 additions & 0 deletions docs/services/mirrors/services.md
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 服务,这部分文档也就咕咕咕了。
5 changes: 1 addition & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,8 @@ nav:
- Docker: "services/mirrors/docker.md"
- IPMI: "services/mirrors/ipmi.md"
- ZFS: "services/mirrors/zfs.md"
- Genindex: "services/mirrors/genindex.md"
- Services: services/mirrors/services.md
- Monitoring: services/mirrors/monitor.md
- HTTP Service: services/mirrors/http.md
- Rsync Service: "#"
- Reverse Proxy: "#"
- Limiter: "services/mirrors/limiter.md"
- Repo sync: "#"
- Mail list: "services/mirrors/mail-list.md"
Expand Down

0 comments on commit 7785fe9

Please sign in to comment.