added traefik config provider endpoint

This commit is contained in:
Milo Schwartz 2024-09-28 22:50:10 -04:00
parent a67463a518
commit 07bf2059c6
No known key found for this signature in database
10 changed files with 134 additions and 472 deletions

View file

@ -41,8 +41,8 @@ export const targets = sqliteTable("targets", {
targetId: integer("targetId").primaryKey({ autoIncrement: true }),
resourceId: text("resourceId").references(() => resources.resourceId, { onDelete: "cascade" }),
ip: text("ip").notNull(),
method: text("method"),
port: integer("port"),
method: text("method").notNull(),
port: integer("port").notNull(),
protocol: text("protocol"),
});
@ -69,4 +69,4 @@ export type Site = InferSelectModel<typeof sites>;
export type Resource = InferSelectModel<typeof resources>;
export type ExitNode = InferSelectModel<typeof exitNodes>;
export type Route = InferSelectModel<typeof routes>;
export type Target = InferSelectModel<typeof targets>;
export type Target = InferSelectModel<typeof targets>;