Handle newt online offline with websocket

This commit is contained in:
Owen
2026-03-14 11:59:20 -07:00
parent 75ab074805
commit 1a43f1ef4b
6 changed files with 159 additions and 99 deletions

View File

@@ -90,6 +90,7 @@ export const sites = sqliteTable("sites", {
lastBandwidthUpdate: text("lastBandwidthUpdate"),
type: text("type").notNull(), // "newt" or "wireguard"
online: integer("online", { mode: "boolean" }).notNull().default(false),
lastPing: integer("lastPing"),
// exit node stuff that is how to connect to the site when it has a wg server
address: text("address"), // this is the address of the wireguard interface in newt