fix7: закрыть P0/P1 блокеры runtime/install и перевести hysteria UI в read-only

This commit is contained in:
2026-04-28 18:36:41 +05:00
parent 087d9f616a
commit 5455e41fc1
7 changed files with 26 additions and 357 deletions
+7
View File
@@ -66,6 +66,13 @@ export async function preflight(context: InstallContext): Promise<void> {
fail("acme mode requires HY2XS_DOMAIN and HY2XS_ACME_EMAIL");
}
if (!isReconfigure && context.config.tlsMode === "acme") {
const acmeChallengePort = context.config.acmeType === "http" ? 80 : 443;
if (await isPortBusy(acmeChallengePort)) {
fail(`ACME ${context.config.acmeType}-challenge port is already in use: ${acmeChallengePort}`);
}
}
if (context.config.domain) {
try {
const a = await run`getent ahostsv4 ${context.config.domain}`;