in reply to feld

@feld thanks — that's pretty similar to what I've got (I'm using `$ssl_preread_protocol` instead of `$ssl_preread_alpn_protocol`, is the only diff).

The problem I'm having is the access logs for the HTTPS upstream record 127.0.0.1 as the remote_addr in the log — which, I understand _why_, that's where the request looks like it's coming from at that point — but I'm not sure how to get the actual remote_addr logged.

@feld