mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 04:07:51 +08:00
commit
31ded52290
@ -33,6 +33,13 @@ type Server struct {
|
|||||||
Locations []*Location
|
Locations []*Location
|
||||||
OptionValue map[string]string
|
OptionValue map[string]string
|
||||||
UpstreamName string //used for tcp and udp server
|
UpstreamName string //used for tcp and udp server
|
||||||
|
|
||||||
|
// Sets the number of datagrams expected from the proxied server in response
|
||||||
|
// to the client request if the UDP protocol is used.
|
||||||
|
// http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_responses
|
||||||
|
// Default: 1
|
||||||
|
ProxyStreamResponses int
|
||||||
|
|
||||||
ProxyStreamTimeout string
|
ProxyStreamTimeout string
|
||||||
//proxy protocol for tcp real ip
|
//proxy protocol for tcp real ip
|
||||||
ProxyProtocol ProxyProtocol
|
ProxyProtocol ProxyProtocol
|
||||||
|
@ -244,6 +244,7 @@ func (o *OrService) getNgxServer(conf *v1.Config) (l7srv []*model.Server, l4srv
|
|||||||
"service_id": vs.ServiceID,
|
"service_id": vs.ServiceID,
|
||||||
},
|
},
|
||||||
UpstreamName: vs.PoolName,
|
UpstreamName: vs.PoolName,
|
||||||
|
ProxyStreamResponses: 1,
|
||||||
}
|
}
|
||||||
server.Listen = strings.Join(vs.Listening, " ")
|
server.Listen = strings.Join(vs.Listening, " ")
|
||||||
l4srv = append(l4srv, server)
|
l4srv = append(l4srv, server)
|
||||||
|
Loading…
Reference in New Issue
Block a user