Config backend for cloud proxy with basic auth

Hi

I need to configure installed haproxy as a forward proxy to be able to make requests to cloud proxy which requires basic authentication

to be able to
curl -x http://my-local-ha-proxy:8000 http://example.com
without passing login:pass every time