Welcome! Log In Create A New Profile

Advanced

Problems with PROXY_PROTOCOL in ngx_stream

September 09, 2019 04:17AM
I am using ngx_stream with ssl_preread_module. The $ssl_preread_server_name variable is used in the proxy_pass directive. Nginx is behind NLB in AWS and receives v2 of the protocol with Amazon's own extension - PP2_TYPE_AWS - https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#proxy-protocol

The problem I am running into is the fact nginx does not pass the original proxy_protocol header so the upstreams can not see the PP2_TYPE_AWS field from the original header. Any advice?
Subject Author Posted

Problems with PROXY_PROTOCOL in ngx_stream

proxyuser September 09, 2019 04:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready