Fragnet game servers: games, addresses, backups, power actions

New integration kind "fragnet" reading Fragnet's Pterodactyl-based panel through the
client API (account key). Game servers page under Infrastructure with game, IP:port,
state, memory/disk, backups, schedules and databases; alerts for late backups and
nearly full disk/memory; operators can start/stop/restart/kill (audited). Metrics,
docs and tests included; migration 0071 adds fragnet_state.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-27 19:01:36 +01:00
1 parent f86661f6c9
commit 9a3d5c466a
29 files changed
+9836 -8

No files matched your search

+13
View File
@@ -563,6 +563,7 @@ export const integrationTypes = [
"n8n",
"hetzner",
"speedtest",
"fragnet",
] as const;
export type IntegrationType = (typeof integrationTypes)[number];
@@ -1273,6 +1274,18 @@ export const hetznerState = sqliteTable("hetzner_state", {
updatedAt: text("updated_at").notNull(), // ISO
});
// ─── Fragnet game servers ───────────────────────────────────────────────────
// How a Fragnet game panel account (an integration of type "fragnet"; a key belongs to one account) is right now, one row each, replaced at every read: its game servers as JSON — the game,
// the addresses, the limits, what each uses, its backups, schedules and databases — plus when this app first saw each and since when it has had its present state. Read by services/fragnetSync.ts.
export const fragnetState = sqliteTable("fragnet_state", {
integrationId: integer("integration_id")
.primaryKey()
.references(() => integrations.id, { onDelete: "cascade" }),
servers: text("servers").notNull().default("[]"),
updatedAt: text("updated_at").notNull(), // ISO
});
// ─── NetBox ─────────────────────────────────────────────────────────────────
// How a NetBox (an integration of type "netbox") is right now, one row each, replaced at every read: its version, how many background workers are running, the counts and the IP