proxy_protocol on ssl_passthrough listener
Move proxy_protocol to listener. Fix #207
This commit is contained in:
parent
c714f2f697
commit
6fa461c2a7
1 changed files with 1 additions and 2 deletions
|
@ -434,8 +434,7 @@ stream {
|
|||
{{ buildSSPassthroughUpstreams $backends .PassthroughBackends }}
|
||||
|
||||
server {
|
||||
listen [::]:443 ipv6only=off;
|
||||
{{ if $cfg.UseProxyProtocol }}proxy_protocol on;{{ end }}
|
||||
listen [::]:443 ipv6only=off{{ if $cfg.UseProxyProtocol }} proxy_protocol{{ end }};
|
||||
proxy_pass $stream_upstream;
|
||||
ssl_preread on;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue