mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
Automatic merge from release/2.3.0 -> release/2.4.0
* commit 'ec71bc2fe99668a49fa2cc1b92413798cf6bec4a': loadbalancers: 增加rps限速支持 loadbalancers: 清理监听选项名 loadbalancers: 移除Bandwidth字段
This commit is contained in:
@@ -25,10 +25,8 @@ type LoadbalancerHTTPListener struct {
|
||||
StickySessionCookie string
|
||||
StickySessionCookieTimeout int
|
||||
|
||||
XForwardedFor bool
|
||||
XForwardedForSLBIP bool
|
||||
XForwardedForSLBID bool
|
||||
Gzip bool
|
||||
XForwardedFor bool
|
||||
Gzip bool
|
||||
}
|
||||
|
||||
// CACertificate string
|
||||
@@ -38,11 +36,15 @@ type LoadbalancerHTTPSListener struct {
|
||||
EnableHttp2 bool
|
||||
}
|
||||
|
||||
type LoadbalancerHTTPRateLimiter struct {
|
||||
HTTPRequestRate int
|
||||
HTTPRequestRatePerSrc int
|
||||
}
|
||||
|
||||
type LoadbalancerListener struct {
|
||||
VirtualResource
|
||||
|
||||
LoadbalancerId string
|
||||
Bandwidth int
|
||||
ListenerType string
|
||||
ListenerPort int
|
||||
|
||||
@@ -79,8 +81,7 @@ type LoadbalancerListener struct {
|
||||
LoadbalancerHTTPListener
|
||||
LoadbalancerHTTPSListener
|
||||
|
||||
XForwardedFor bool
|
||||
Gzip bool
|
||||
LoadbalancerHTTPRateLimiter
|
||||
}
|
||||
|
||||
type LoadbalancerListenerRule struct {
|
||||
@@ -91,6 +92,8 @@ type LoadbalancerListenerRule struct {
|
||||
|
||||
Domain string
|
||||
Path string
|
||||
|
||||
LoadbalancerHTTPRateLimiter
|
||||
}
|
||||
|
||||
type LoadbalancerBackendGroup struct {
|
||||
|
||||
Reference in New Issue
Block a user