Merge pull request #304 from caiyixiang/changeSStoSSL
change 'buildSSPassthrouthUpstreams' to 'buildSSLPassthroughUpstreams'
This commit is contained in:
commit
463ff2b453
2 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ var (
|
||||||
"buildProxyPass": buildProxyPass,
|
"buildProxyPass": buildProxyPass,
|
||||||
"buildRateLimitZones": buildRateLimitZones,
|
"buildRateLimitZones": buildRateLimitZones,
|
||||||
"buildRateLimit": buildRateLimit,
|
"buildRateLimit": buildRateLimit,
|
||||||
"buildSSPassthroughUpstreams": buildSSPassthroughUpstreams,
|
"buildSSLPassthroughUpstreams": buildSSLPassthroughUpstreams,
|
||||||
"buildResolvers": buildResolvers,
|
"buildResolvers": buildResolvers,
|
||||||
"isLocationAllowed": isLocationAllowed,
|
"isLocationAllowed": isLocationAllowed,
|
||||||
"buildStreamUpstreams": buildStreamUpstreams,
|
"buildStreamUpstreams": buildStreamUpstreams,
|
||||||
|
@ -171,7 +171,7 @@ func buildResolvers(a interface{}) string {
|
||||||
return strings.Join(r, " ")
|
return strings.Join(r, " ")
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildSSPassthroughUpstreams(b interface{}, sslb interface{}) string {
|
func buildSSLPassthroughUpstreams(b interface{}, sslb interface{}) string {
|
||||||
backends := b.([]*ingress.Backend)
|
backends := b.([]*ingress.Backend)
|
||||||
sslBackends := sslb.([]*ingress.SSLPassthroughBackend)
|
sslBackends := sslb.([]*ingress.SSLPassthroughBackend)
|
||||||
buf := bytes.NewBuffer(make([]byte, 0, 10))
|
buf := bytes.NewBuffer(make([]byte, 0, 10))
|
||||||
|
|
|
@ -446,7 +446,7 @@ stream {
|
||||||
server 127.0.0.1:442;
|
server 127.0.0.1:442;
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ buildSSPassthroughUpstreams $backends .PassthroughBackends }}
|
{{ buildSSLPassthroughUpstreams $backends .PassthroughBackends }}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen [::]:443 ipv6only=off{{ if $cfg.UseProxyProtocol }} proxy_protocol{{ end }};
|
listen [::]:443 ipv6only=off{{ if $cfg.UseProxyProtocol }} proxy_protocol{{ end }};
|
||||||
|
|
Loading…
Reference in a new issue