Feat: Server Endpoint (#1785)

* add server endpoint to client

* be able to update endpoint over api
This commit is contained in:
Bernd Storath
2025-04-01 16:13:51 +02:00
committed by GitHub
parent 9df049d3f4
commit e92ee0464e
8 changed files with 30 additions and 6 deletions
@@ -31,6 +31,7 @@ export const client = sqliteTable('clients_table', {
persistentKeepalive: int('persistent_keepalive').notNull(),
mtu: int().notNull(),
dns: text({ mode: 'json' }).$type<string[]>(),
serverEndpoint: text('server_endpoint'),
enabled: int({ mode: 'boolean' }).notNull(),
createdAt: text('created_at')
.notNull()
@@ -65,6 +65,7 @@ export const ClientUpdateSchema = schemaForType<UpdateClientType>()(
serverAllowedIps: serverAllowedIps,
mtu: MtuSchema,
persistentKeepalive: PersistentKeepaliveSchema,
serverEndpoint: AddressSchema.nullable(),
dns: DnsSchema.nullable(),
})
);