Port presets: name ports automatically, scan many hosts for a preset, apply names in bulk
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
93aaf5476d
commit
fca2dc0338
24 files changed
+9764
-40
No files matched your search
@@ -716,6 +716,18 @@ export const portForwards = sqliteTable("port_forwards", {
|
||||
.default(sql`(current_timestamp)`),
|
||||
});
|
||||
|
||||
// ─── Port presets ───────────────────────────────────────────────────────────
|
||||
|
||||
// A named list of ports and what each is — "Remote access": 22 SSH, 3389 RDP — written once and used on every host: to name a port wherever it shows, to scan several hosts for just those
|
||||
// ports, and to write the names onto what is open. `ports` is JSON: [{ port, protocol, label }]. Some ready-made ones are put there the first time (services/portPresets.ts).
|
||||
export const portPresets = sqliteTable("port_presets", {
|
||||
id: integer("id").primaryKey({ autoIncrement: true }),
|
||||
name: text("name").notNull().unique(),
|
||||
ports: text("ports").notNull().default("[]"),
|
||||
createdAt: text("created_at").notNull(), // ISO
|
||||
updatedAt: text("updated_at").notNull(), // ISO
|
||||
});
|
||||
|
||||
// ─── Domain registrations ───────────────────────────────────────────────────
|
||||
|
||||
export const domainOrigins = ["manual", "zone"] as const;
|
||||
|
||||
Reference in new issue
Block a user