Add remote subnets back based on resources

This commit is contained in:
Owen 2025-11-08 12:17:33 -08:00
parent cad4d97fb3
commit f98b4baa73
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
4 changed files with 55 additions and 8 deletions

View file

@ -93,8 +93,7 @@ export const sites = sqliteTable("sites", {
listenPort: integer("listenPort"),
dockerSocketEnabled: integer("dockerSocketEnabled", { mode: "boolean" })
.notNull()
.default(true),
remoteSubnets: text("remoteSubnets") // comma-separated list of subnets that this site can access
.default(true)
});
export const resources = sqliteTable("resources", {
@ -359,7 +358,7 @@ export const clients = sqliteTable("clients", {
type: text("type").notNull(), // "olm"
online: integer("online", { mode: "boolean" }).notNull().default(false),
// endpoint: text("endpoint"),
lastHolePunch: integer("lastHolePunch"),
lastHolePunch: integer("lastHolePunch")
});
export const clientSites = sqliteTable("clientSites", {