You should configure the PROXY protocol on your load-balancer or ensure it sets X-Forwarded-For and configure the load-balancer’s IP address as trusted_proxy.
I’ve enabled Proxy Protocal on the load balancer and added trusted_proxies 10.0.0.0/16 to the servers secton in my Caddyfile but when I visit the site I get Secure Connection Failed
I did try using proxy_protocol earlier and then enabling Proxy Protocal on the LB but that doesn’t work either. I get the same " Secure Connection Failed" error when visiting the site. Same issue when I disabled Proxy Protocal on the LB.
I’ve also tried the trusted_proxies and get the same error as above.
So to confirm, I need to enable Proxy Protocal on the LB and add proxy_protocol or am I misunderstanding?
{"level":"debug","ts":1739815060.8913403,"logger":"http.stdlib","msg":"http: TLS handshake error from 10.0.0.2:26940: tls: first record does not look like a TLS handshake"}