-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
115 lines (111 loc) · 4.76 KB
/
Copy pathconfig.example.yaml
File metadata and controls
115 lines (111 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# anssl 配置模板。
# 首次安装后通常只需要先填写 server.accessKey。
# 除 server.accessKey 外,其余字段均可按需要启用;留空或 false 表示不启用对应能力。
server:
# 必填。从 anssl.cn 控制台 -> 开发者 -> API 凭证 中获取,用于客户端连接后端时鉴权。
accessKey: "your_access_key_here"
# 可选。HTTP-01 验证服务端口,默认 19000。
# Nginx/Apache 反向代理 .well-known/acme-challenge 到该端口后,证书申请验证可自动完成。
port: 19000
ssl:
# 可选。Nginx 证书目录,配置后会自动部署证书并执行 nginx -t / nginx reload。
# 留空则不部署到 Nginx。
nginxPath: ""
# 可选。Apache 证书目录,配置后会自动部署证书并执行 Apache 配置测试 / graceful reload。
# 留空则不部署到 Apache。
apachePath: ""
# 可选。RustFS TLS 证书目录,配置后会自动部署 RustFS 使用的 TLS 证书。
# 留空则不部署到 RustFS。
rustFSPath: ""
# 可选。飞牛 OS 证书部署开关,默认 false。
feiNiuEnabled: false
# 可选。1Panel 配置。url 或 apiKey 留空则不部署到 1Panel。
onePanel:
# 1Panel 面板地址,例如 http://localhost:10000。
url: ""
# 1Panel API 密钥,在 1Panel 面板 设置 -> 安全 -> API 接口 中生成。
apiKey: ""
update:
# 可选。自更新下载源类型,支持 github、ghproxy、custom,默认 ghproxy。
# github:直连 GitHub。
# ghproxy:使用 https://gh-proxy.com/https://github.com 加速。
# custom:使用 customUrl 指定的自定义 GitHub 镜像前缀。
mirror: "ghproxy"
# 可选。mirror 为 custom 时必填,例如 https://your-proxy.example.com/https://github.com。
customUrl: ""
# 可选。HTTP/HTTPS 代理地址,例如 http://127.0.0.1:7890。
proxy: ""
log:
# 可选。单个日志文件最大体积(MB),0 表示使用默认值 20。
maxSizeMB: 20
# 可选。最多保留的轮转日志文件数量,0 表示使用默认值 5。
maxBackups: 5
# 可选。轮转日志最长保留天数,0 表示使用默认值 30。
maxAgeDays: 30
# 可选。云服务 provider 配置。未配置则不启用云服务证书上传与部署。
# 支持的 name:
# - aliyun:阿里云。支持 CAS 上传,以及 CDN、DCDN、ESA、OSS 自定义域名的精确证书部署。
# - qiniu:七牛云。支持证书中心上传,以及 CDN、DCDN 域名的精确证书部署。
# - cloudTencent:腾讯云。支持 SSL 上传,以及 CDN、EdgeOne、COS 自定义域名的精确证书部署。
# 在 provider 下直接使用 cdn、dcdn、esa、oss、edgeOne、cos 配置对应产品资源。
# targetRef 由客户端根据资源定位字段自动生成,不需要手工填写。
# 配置任一自动部署资源时必须同时填写该 provider 的完整认证信息,否则客户端会拒绝启动。
# Bucket、Region、Endpoint、SiteId、ZoneId 和认证信息只保存在本机,不会上报到服务端。
# provider:
# - name: "aliyun"
# remark: "阿里云"
# auth:
# # 阿里云 AccessKey ID。
# accessKeyId: "your-aliyun-access-key-id"
# # 阿里云 AccessKey Secret。
# accessKeySecret: "your-aliyun-access-key-secret"
# cdn:
# - label: "官网 CDN" # 可选,留空时使用 domain。
# domain: "www.example.com"
# dcdn:
# - label: "API DCDN"
# domain: "api.example.com"
# esa:
# - label: "应用 ESA"
# domain: "app.example.com" # 精确 ESA RecordName。
# siteId: "your-esa-site-id"
# oss:
# - label: "静态资源 OSS"
# domain: "static.example.com"
# region: "cn-hangzhou"
# bucket: "your-oss-bucket"
# endpoint: "https://oss-cn-hangzhou.aliyuncs.com" # 可选,只允许 HTTPS Origin。
#
# - name: "qiniu"
# remark: "七牛云"
# auth:
# # 七牛云 AccessKey。
# accessKey: "your-qiniu-access-key"
# # 七牛云 SecretKey。
# accessSecret: "your-qiniu-access-secret"
# cdn:
# - label: "官网 CDN"
# domain: "www.example.com"
# dcdn:
# - label: "API DCDN"
# domain: "api.example.com"
#
# - name: "cloudTencent"
# remark: "腾讯云"
# auth:
# # 腾讯云 SecretId。
# secretId: "your-tencent-secret-id"
# # 腾讯云 SecretKey。
# secretKey: "your-tencent-secret-key"
# cdn:
# - label: "官网 CDN"
# domain: "www.example.com"
# edgeOne:
# - label: "应用 EdgeOne"
# domain: "app.example.com" # 精确 EdgeOne Host。
# zoneId: "your-edgeone-zone-id"
# cos:
# - label: "静态资源 COS"
# domain: "static.example.com"
# region: "ap-guangzhou"
# bucket: "your-cos-bucket-1250000000" # 必须包含 APPID。