-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
179 lines (171 loc) · 7.21 KB
/
Copy pathconfig.example.yaml
File metadata and controls
179 lines (171 loc) · 7.21 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# 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 节点则不部署到 RustFS。
# 只填写 path 时部署到客户端本机;同时填写 host、port、username 和认证字段时通过 SSH 远程部署。
# privateKeyPath 是 deploy 客户端本机上的私钥绝对路径,私钥内容不会写入配置或发送到后端。
# password 和 privateKeyPath 至少填写一项;使用私钥时 password 仅作为可选的 sudo 密码。
# rustFS:
# path: "/opt/rustfs/tls"
# host: "192.168.1.30"
# port: 22
# username: "admin"
# password: ""
# privateKeyPath: "/home/anssl/.ssh/id_ed25519"
# privateKeyPassphrase: ""
# 可选。远程飞牛 OS 的 SSH 配置;不配置时,飞牛部署目标使用当前设备的内置本机部署逻辑。
# password 与 privateKeyPath 至少填写一项;使用私钥时 password 仅作为可选的 sudo 密码。
# privateKeyPath 是 deploy 客户端本机上的私钥绝对路径,请确保配置文件和私钥权限均为 0600。
# feiNiu:
# host: ""
# port: 22
# username: ""
# password: ""
# privateKeyPath: "/home/anssl/.ssh/id_ed25519"
# privateKeyPassphrase: ""
# 可选。1Panel 配置。url 或 apiKey 留空则不部署到 1Panel。
onePanel:
# 1Panel 面板地址,例如 http://localhost:10000。
url: ""
# 1Panel API 密钥。
apiKey: ""
# 可选。雷池 WAF OpenAPI 配置。API Token 可在雷池通用设置中获取。
# 使用自签名 HTTPS 证书时才开启 insecureSkipVerify;公网或受信任证书必须保持 false。
safeLine:
url: ""
apiToken: ""
insecureSkipVerify: false
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 自定义域名、CLB HTTPS 监听器的精确证书部署。
# - qiniu:七牛云。支持证书中心上传,以及 CDN、DCDN 域名的精确证书部署。
# - cloudTencent:腾讯云。支持 SSL 上传,以及 CDN、EdgeOne、COS 自定义域名、CLB 监听器的精确证书部署。
# 在 provider 下直接使用 cdn、dcdn、esa、oss、edgeOne、cos、clb 配置对应产品资源;CLB 字段按 provider 使用 listenerPort 或 listenerId。
# targetRef 由客户端根据资源定位字段自动生成,不需要手工填写。
# 配置任一自动部署资源时必须同时填写该 provider 的完整认证信息,否则客户端会拒绝启动。
# Bucket、Region、Endpoint、SiteId、ZoneId、LoadBalancerId、ListenerPort、ListenerId 和认证信息只保存在本机,不会上报到服务端。
# 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。
#
# clb:
# - label: "官网 CLB"
# domain: "www.example.com" # 精确域名;客户端自动识别默认或 SNI 证书槽位。
# region: "cn-hangzhou"
# loadBalancerId: "lb-xxxxxxxx"
# listenerPort: 443 # 仅支持 HTTPS 监听器。
#
# alb:
# - label: "官网 ALB"
# domain: "www.example.com" # 精确域名;客户端自动识别默认或 SNI 扩展证书槽位。
# region: "cn-hangzhou"
# loadBalancerId: "alb-xxxxxxxx"
# listenerId: "lsr-xxxxxxxx" # ALB HTTPS 或 QUIC 监听器 ID。
#
# nlb:
# - label: "官网 NLB"
# domain: "www.example.com" # 精确域名;客户端自动识别默认或 SNI 扩展证书槽位。
# region: "cn-hangzhou"
# loadBalancerId: "nlb-xxxxxxxx"
# listenerId: "lsn-xxxxxxxx" # NLB TCPSSL 监听器 ID。
#
# - 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。
#
# clb:
# - label: "业务 CLB"
# domain: "www.example.com" # 精确域名;客户端自动识别 SNI 规则或监听器证书槽位。
# region: "ap-guangzhou"
# loadBalancerId: "lb-xxxxxxxx"
# listenerId: "lbl-xxxxxxxx" # 腾讯云 CLB 监听器 ID。