镜像自地址
https://github.com/JGZYES/ParlzPackageManger.git
已同步 2026-09-11 05:42:44 +08:00
add sz mirror (sz.pmm.parlz.com/mirror) as secondary source
这个提交包含在:
@@ -86,16 +86,18 @@ SHA 实现为纯 C 内置(FIPS 180-4),无外部依赖。
|
|||||||
|
|
||||||
```ini
|
```ini
|
||||||
# ~/.pmm/mirror.ini
|
# ~/.pmm/mirror.ini
|
||||||
[官方]
|
[main]
|
||||||
registry = https://mirror.example.com/packages # registry 索引:{registry}/{包}.json
|
registry = https://pmm.parlz.com/mirror/packages
|
||||||
download = https://ghfast.example-mirror.dev # 下载前缀(gh-proxy 风格,接到原始 URL 前)
|
priority = 1
|
||||||
api = https://api.mirror.example # git 主机 API 基地址(整体替换)
|
|
||||||
priority = 10 # 越小越优先(apt 式)
|
[sz]
|
||||||
|
registry = https://sz.pmm.parlz.com/mirror/packages
|
||||||
|
priority = 20
|
||||||
default = true
|
default = true
|
||||||
|
|
||||||
[自建]
|
# 其它字段(可选):
|
||||||
registry = https://git.example.local/packages
|
download = https://ghfast.example-mirror.dev # 下载前缀(gh-proxy 风格,接到原始 URL 前)
|
||||||
priority = 20
|
api = https://api.mirror.example # git 主机 API 基地址(整体替换)
|
||||||
```
|
```
|
||||||
|
|
||||||
- `pmm install <包>` 会**按 priority 从小到大依次尝试**每个镜像的
|
- `pmm install <包>` 会**按 priority 从小到大依次尝试**每个镜像的
|
||||||
|
|||||||
+5
-8
@@ -1,14 +1,11 @@
|
|||||||
# PMM 镜像源配置 (mirror.conf 与本文件格式相同)
|
# PMM 镜像源配置 (mirror.conf 与本文件格式相同)
|
||||||
# apt 式:priority 越小越优先;registry 为 pmm install <包> 的索引镜像;
|
# apt 式:priority 越小越优先;registry 为 pmm install <包> 的索引镜像。
|
||||||
# download 为下载前缀;api 替换 git 主机 API 基地址。
|
|
||||||
#
|
#
|
||||||
[官方]
|
[main]
|
||||||
registry = https://pmm.parlz.com/mirror/packages
|
registry = https://pmm.parlz.com/mirror/packages
|
||||||
download = https://pmm.parlz.com/mirror/files
|
|
||||||
priority = 1
|
priority = 1
|
||||||
default = true
|
|
||||||
|
|
||||||
[自建Gitea]
|
[sz]
|
||||||
registry = https://git.mycompany.local/packages
|
registry = https://sz.pmm.parlz.com/mirror/packages
|
||||||
api = https://git.mycompany.local
|
|
||||||
priority = 20
|
priority = 20
|
||||||
|
default = true
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户