生产部署整改阶段检查点

This commit is contained in:
xuans committed 2026-08-31 23:33:56 +08:00
1 parent f3348cf95d
commit 92d4b3d398
56 files changed
+4178 -240

No files matched your search

@@ -273,6 +273,7 @@ export function useDashboard() {
private_key_path: defaultPrivateKeyPath,
certificate_chain_path: defaultCertificateChainPath,
web_server: "nginx",
validation_command: "",
reload_command: "",
server_ids: [],
};
@@ -457,6 +458,7 @@ export function useDashboard() {
serverEditingId.value = item.id;
serverForm.value = {
...item,
validation_command: (item.validation_command || []).join("\n"),
reload_command: (item.reload_command || []).join("\n"),
server_ids: [],
};
@@ -576,6 +578,7 @@ export function useDashboard() {
private_key_path: serverForm.value.private_key_path,
certificate_chain_path: serverForm.value.certificate_chain_path,
web_server: serverForm.value.web_server,
validation_command: parseCommand(serverForm.value.validation_command),
reload_command: parseCommand(serverForm.value.reload_command),
};
const path = serverEditingId.value
+14 -2
View File
@@ -944,12 +944,24 @@ const {
</p>
<label class="field"
><span
>自定义重载命令
>配置校验命令
<small
>每行一个参数;Nginx、Caddy、Apache 留空使用默认命令,自定义服务必须填写</small
></span
><textarea
v-model="serverForm.validation_command"
rows="3"
placeholder="nginx&#10;-t"
></textarea>
</label>
<label class="field"
><span
>重载命令
<small>每行一个参数;留空使用网站服务默认命令</small></span
><textarea
v-model="serverForm.reload_command"
rows="3"
placeholder="nginx -s reload"
placeholder="nginx&#10;-s&#10;reload"
></textarea>
</label>
<p v-if="serverFormError" class="form-error">{{ serverFormError }}</p>