move proxy related settings to new proxy tab for resource

This commit is contained in:
miloschwartz
2025-04-23 23:08:25 -04:00
parent f4fd33b47f
commit 91b4bb4683
14 changed files with 324 additions and 277 deletions

View File

@@ -99,6 +99,7 @@ const updateRawResourceBodySchema = z
.object({
name: z.string().min(1).max(255).optional(),
proxyPort: z.number().int().min(1).max(65535).optional(),
stickySession: z.boolean().optional(),
enabled: z.boolean().optional()
})
.strict()

View File

@@ -41,7 +41,7 @@ export async function traefikConfigProvider(
orgId: orgs.orgId
},
enabled: resources.enabled,
stickySession: resources.stickySessionk,
stickySession: resources.stickySession,
tlsServerName: resources.tlsServerName,
setHostHeader: resources.setHostHeader
})
@@ -288,7 +288,7 @@ export async function traefikConfigProvider(
? {
sticky: {
cookie: {
name: "pangolin_sticky",
name: "p_sticky", // TODO: make this configurable via config.yml like other cookies
secure: resource.ssl,
httpOnly: true
}