fix7: закрыть P0/P1 блокеры runtime/install и перевести hysteria UI в read-only
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user