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 3db942b472
commit e12d5413ef

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