Hub 2.11.0: ports checked on both servers before an install; frp config on each server's page
- A new install reserves candidate ports, asks the central and church servers which are free (probe-ports), and runs on the first pair free on both (3 rounds, then called off). - Each server's page reads and changes frps's / frpc's config (agent 1.4.0): secrets stay on the server, two-factor, verify, backup, restart, put back if frp doesn't start. - Alerts name the config file the agent uses; a missing config gets its own alert. - Vendors contracts 1.15.0. Migration 20261121110000_server_frp_config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,9 +51,14 @@ export default function InstallsPage() {
|
||||
setBusy(true);
|
||||
setMsg(null);
|
||||
try {
|
||||
const r = await api<{ deployment: Deployment; warnings: string[]; alsoInstalling?: { product: string; domain: string; version: string } }>("/api/admin/deployments", { method: "POST", body: { ...form, version: form.version || undefined, accountsDomain: form.accountsDomain || undefined } });
|
||||
const r = await api<{ deployment: Deployment; warnings: string[]; checkingPorts?: boolean; alsoInstalling?: { product: string; domain: string; version: string } }>("/api/admin/deployments", { method: "POST", body: { ...form, version: form.version || undefined, accountsDomain: form.accountsDomain || undefined } });
|
||||
// Hub 2.5.0: Cross Events 3.x for a church without Accounts installs Accounts first.
|
||||
const notes = [...(r.alsoInstalling ? [`Accounts ${r.alsoInstalling.version} is installed first at ${r.alsoInstalling.domain}; Cross Events follows when it has finished.`] : []), ...r.warnings];
|
||||
const notes = [
|
||||
// Hub 2.11.0: the ports are checked on the central server and this one first.
|
||||
...(r.checkingPorts ? ["The ports are being checked on the central server and this server first; the install starts on ports free on both (about a minute)."] : []),
|
||||
...(r.alsoInstalling ? [`Accounts ${r.alsoInstalling.version} is installed first at ${r.alsoInstalling.domain}; Cross Events follows when it has finished.`] : []),
|
||||
...r.warnings,
|
||||
];
|
||||
router.push(`/servers/installs/${r.deployment.id}${notes.length ? `?warn=${encodeURIComponent(notes.join(" "))}` : ""}`);
|
||||
} catch (err) { setMsg({ type: "err", text: errorText(err) }); }
|
||||
setBusy(false);
|
||||
|
||||
Reference in New Issue
Block a user