mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
The installer only writes the controller URL and host name. Running the host requests to join the cluster if it has not been approved yet, or if the controller no longer accepts its token, and waits until an admin approves it. Once approved it saves its id and token and starts as normal. A rejected host exits with code 8. clusteriohost run --user-token approves the host right away with the token of a user allowed to approve hosts. The token is not saved. This moves the pairing client into the host package, where it uses the same certificate setup as the host's connection to the controller, and removes --no-pair and the rerun handling from the installer.
12 lines
552 B
TypeScript
12 lines
552 B
TypeScript
import { bootstrap } from "./host.js";
|
|
export { BaseHostPlugin, HostHooks, type HostPluginContext } from "./src/BaseHostPlugin.js";
|
|
export { BaseInstancePlugin, InstanceHooks, type InstancePluginContext } from "./src/BaseInstancePlugin.js";
|
|
export { default as Host, HostRouter } from "./src/Host.js";
|
|
export { default as Instance } from "./src/Instance.js";
|
|
export { default as InstanceConnection } from "./src/InstanceConnection.js";
|
|
export { PairingError, checkHostToken, pairHost } from "./src/pairing.js";
|
|
|
|
if (import.meta.main) {
|
|
bootstrap();
|
|
}
|