Here is a working configuration for HA-Proxy version 1.6.6 2016/06/26 to serve Portainer at portainer.127.0.0.1.xip.io :
global
maxconn 10000
daemon
ssl-server-verify none
tune.ssl.default-dh-param 2048