This commit is contained in:
Milo Schwartz 2024-10-26 23:37:33 -04:00
commit 8a8c42e3b1
No known key found for this signature in database
10 changed files with 270 additions and 103 deletions

View file

@ -52,10 +52,11 @@ export const targets = sqliteTable("targets", {
export const exitNodes = sqliteTable("exitNodes", {
exitNodeId: integer("exitNodeId").primaryKey({ autoIncrement: true }),
name: text("name").notNull(),
address: text("address").notNull(),
endpoint: text("endpoint").notNull(),
address: text("address").notNull(), // this is the address of the wireguard interface in gerbil
endpoint: text("endpoint").notNull(), // this is how to reach gerbil externally - gets put into the wireguard config
publicKey: text("pubicKey").notNull(),
listenPort: integer("listenPort").notNull(),
reachableAt: text("reachableAt"), // this is the internal address of the gerbil http server for command control
});
export const users = sqliteTable("user", {