<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hello,</div><div class=""><br class=""></div>I’m trying to basically use nginx as replacement to hitch (for Varnish).<div class=""><br class=""><div class="">Request goes like this: browser → nginx (stream SSL) → varnish (HTTP2 on) → backend HTTP<br class=""><div class=""><br class=""></div><div class=""><div class="">stream {</div><div class=""> server {</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>listen 443 ssl;</div><div class=""> ssl_certificate /etc/letsencrypt/live/<a href="http://example.com/fullchain.pem" class="">example.com/fullchain.pem</a>;</div><div class=""> ssl_certificate_key /etc/letsencrypt/live/<a href="http://example.com/privkey.pem" class="">example.com/privkey.pem</a>;</div><div class=""> proxy_pass 127.0.0.1:6081;</div><div class=""> proxy_protocol on;</div><div class=""> }</div><div class="">}</div></div><div class=""><br class=""></div><div class="">With the above, I’m getting HTTP/1.1 in browser. </div><div class="">When I replace nginx with hitch, I get HTTP/2.</div><div class=""><br class=""></div><div class=""><div class="">From Hitch docs: "Hitch will transmit the selected protocol as part of its PROXY header” Does nginx have same capability?</div><div class=""><br class=""></div><div class="">In general, is nginx capable of being SSL terminator for HTTP/2 backends using TCP streams? (while delivering HTTP/2 to supporting clients). I’m interested in using TCP streams since only those will allow use of PROXY protocol to upstream.</div><div class=""><br class=""></div><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Best Regards,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Danila</div></div>
</div>
<br class=""></div></div></div></body></html>