mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #4939] [CLOSED] feat: add HTTPS load balancing support #5081
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5081
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/fatedier/frp/pull/4939
Author: @jeet0733
Created: 8/15/2025
Status: ❌ Closed
Base:
dev← Head:feature/https-load-balancing📝 Commits (3)
5b4aea6feat: add HTTPS load balancing support4835801Resolved maintainer comments: removed examples, reduce log verbosity, and unnecessary recover/defer blocks760b7f5Addressed Copilot commnets too📊 Changes
7 files changed (+643 additions, -17 deletions)
View changed files
📝
README.md(+3 -1)📝
pkg/util/vhost/https.go(+141 -3)➕
pkg/util/vhost/https_proxy.go(+140 -0)📝
server/controller/resource.go(+6 -0)➕
server/group/https.go(+224 -0)📝
server/proxy/https.go(+115 -13)📝
server/service.go(+14 -0)📄 Description
What does this PR do?
This PR adds HTTPS load balancing support to frp, enabling high availability and horizontal scaling for HTTPS services by distributing traffic across multiple backend HTTPS endpoints.
Changes Made
New Features
server/group/https.go): Manages load balancing groups for HTTPS services with round-robin distributionpkg/util/vhost/https_proxy.go): Implements SNI-based routing for grouped HTTPS servicesserver/proxy/https.go): Integrates with group controller for load balancingEnhancements
pkg/util/vhost/https.go): Added group routing support and connection proxyingserver/service.go): Initialized HTTPS reverse proxy for group routingconf/frpc_full_example.toml): Added HTTPS load balancing examples with health checksDocumentation
Configuration Example
Benefits
Testing
Related Issues
Closes #[4936] - HTTPS Load Balancing Feature Request
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.