mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-05 02:24:59 +02:00
Update sticky session to show only with 2+ targets and use IP strategy for TCP
This commit is contained in:
parent
ac8e315fbd
commit
4a42aa385a
2 changed files with 18 additions and 14 deletions
|
@ -103,7 +103,10 @@ export async function traefikConfigProvider(
|
|||
[badgerMiddlewareName]: {
|
||||
apiBaseUrl: new URL(
|
||||
"/api/v1",
|
||||
`http://${config.getRawConfig().server.internal_hostname}:${
|
||||
`http://${
|
||||
config.getRawConfig().server
|
||||
.internal_hostname
|
||||
}:${
|
||||
config.getRawConfig().server
|
||||
.internal_port
|
||||
}`
|
||||
|
@ -351,10 +354,9 @@ export async function traefikConfigProvider(
|
|||
...(resource.stickySession
|
||||
? {
|
||||
sticky: {
|
||||
cookie: {
|
||||
name: "pangolin_sticky",
|
||||
secure: resource.ssl,
|
||||
httpOnly: true
|
||||
ipStrategy: {
|
||||
depth: 0,
|
||||
sourcePort: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue