HAProxy community

How to create bind policy for requests with or without proxy-protocol header

I have a HAProxy, which listens on port 443. There are 2 types of requests coming to port 443: 1) normal API request which contains proxy-protocol v2 header ( so I need "Accept-proxy, for such packets). 2) health-check request which doesn’t have proxy-protocol header.

How can I configure ‘bind *:443 …’ rule, so that I can handle 2 types of packets correctly ? i.e HAProxy can apply ‘accept-proxy’ for request with proxy-protocol header, and not using accept-proxy for request which doesn’t have proxy-protocol header.