mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-23 01:52:57 -05:00
[PR #511] [MERGED] Add ability for sticky sessions to backend resource. #2304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/511
Author: @x86txt
Created: 4/11/2025
Status: ✅ Merged
Merged: 4/22/2025
Merged by: @miloschwartz
Base:
dev← Head:sticky_targets📝 Commits (3)
ac8e315Add ability for sticky sessions to backend resource.4a42aa3Update sticky session to show only with 2+ targets and use IP strategy for TCP38528aeMerge branch 'dev' into sticky_targets📊 Changes
5 files changed (+80 additions, -7 deletions)
View changed files
📝
server/db/schemas/schema.ts(+3 -0)📝
server/routers/resource/updateResource.ts(+1 -0)📝
server/routers/traefik/getTraefikConfig.ts(+28 -3)📝
server/setup/scripts/1.3.0.ts(+5 -2)📝
src/app/[orgId]/settings/resources/[resourceId]/connectivity/page.tsx(+43 -2)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Allow 'sticky sessions' to backend resources. This is required if there are multiple targets and the targets aren't stateless, like the VNC console sessions to Proxmox. This keep the user pinned to a single target for the duration of their session.
How to test?
Add two targets as shown in the screenshot below. Browse to your Resource and hit refresh and notice the webpage rotates from server1 to server 2, etc. Enable Sticky Sessions, hit refresh several more times, and notice that Traefik now keeps your session pinned to a single target.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.