proxy_protocol on ssl_passthrough listener

Move proxy_protocol to listener.

Fix #207
This commit is contained in:
Justin Santa Barbara 2017-02-04 02:13:24 -05:00
parent c714f2f697
commit 6fa461c2a7

View file

@ -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;
}