My issue:
Whenever I turn ON proxy protocol version 2 on cloud load balancer, I encountered an issues in nginx-controller pod logs
2025/04/17 19:33:02 [error] 36#36: *6466 header is too large while reading PROXY protocol, client: 10.244.72.64, server: 0.0.0.0:443
2025/04/17 19:33:03 [error] 36#36: *6507 header is too large while reading PROXY protocol, client: 10.244.250.0, server: 0.0.0.0:443
2025/04/17 19:33:03 [error] 39#39: *6508 header is too large while reading PROXY protocol, client: 10.244.47.192, server: 0.0.0.0:443
How I encountered the problem:
With version 1 is working fine.
Solutions I’ve tried:
I tried increasing the client-header-buffer-size: 128k, still did not work.
My config:
server {
server_name myserver.example.com ;
listen 80 proxy_protocol ;
listen [::]:80 proxy_protocol ;
listen 443 proxy_protocol ssl http2 ;
listen [::]:443 proxy_protocol ssl http2 ;