-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
158 lines (149 loc) · 5.93 KB
/
Copy pathconfig.example.yaml
File metadata and controls
158 lines (149 loc) · 5.93 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
# 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: ""
# 可选。宝塔面板网站证书和证书库上传配置。API 密钥可在“面板设置 -> API 接口”中获取。
# 使用自签名 HTTPS 证书时才开启 insecureSkipVerify;公网或受信任证书必须保持 false。
btPanel:
url: ""
apiKey: ""
insecureSkipVerify: false
# 可选。雷池 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 配置。未配置则不启用云服务证书上传与部署。
# 密钥信息只保存在 deploy 客户端内存或本地配置中,不会上报到服务端。
# provider:
# - name: "aliyun"
# remark: "阿里云"
# auth:
# # 阿里云 AccessKey ID。
# accessKeyId: "your-aliyun-access-key-id"
# # 阿里云 AccessKey Secret。
# accessKeySecret: "your-aliyun-access-key-secret"
#
# - name: "qiniu"
# remark: "七牛云"
# auth:
# # 七牛云 AccessKey。
# accessKey: "your-qiniu-access-key"
# # 七牛云 SecretKey。
# accessSecret: "your-qiniu-access-secret"
#
# - name: "cloudTencent"
# remark: "腾讯云"
# auth:
# # 腾讯云 SecretId。
# secretId: "your-tencent-secret-id"
# # 腾讯云 SecretKey。
# secretKey: "your-tencent-secret-key"
#
# - name: "huawei"
# remark: "华为云"
# # 默认资源地域和 SCM 证书中心地域。
# region: "cn-north-4"
# certificateRegion: "cn-north-4"
# # OBS、ELB 等地域资源的发现范围。
# regions:
# - "cn-north-4"
# auth:
# accessKeyId: "your-huawei-access-key-id"
# accessKeySecret: "your-huawei-access-key-secret"
#
# - name: "volcengine"
# remark: "火山引擎"
# # 默认资源地域和证书中心地域。
# region: "cn-beijing"
# certificateRegion: "cn-beijing"
# # TOS、CLB、ALB、NLB 等地域资源的发现范围。
# regions:
# - "cn-beijing"
# auth:
# accessKeyId: "your-volcengine-access-key-id"
# accessKeySecret: "your-volcengine-access-key-secret"
#
# - name: "jdcloud"
# remark: "京东云"
# region: "cn-north-1"
# auth:
# accessKeyId: "your-jdcloud-access-key-id"
# accessKeySecret: "your-jdcloud-access-key-secret"
#
# - name: "baidu"
# remark: "百度云"
# auth:
# accessKeyId: "your-baidu-access-key-id"
# accessKeySecret: "your-baidu-access-key-secret"
#
# - name: "dogecloud"
# remark: "多吉云"
# auth:
# accessKey: "your-dogecloud-access-key"
# accessSecret: "your-dogecloud-access-secret"
#
# - name: "lecdn"
# remark: "LeCDN"
# auth:
# # 生产环境必须使用 HTTPS;server.env 为 local 时仅允许回环 HTTP。
# apiBaseUrl: "https://lecdn.example.com/prod-api"
# apiToken: "your-lecdn-api-token"