HAProxy - Passthrough TLS

Hi
I am new to HAProxy and trying to do two things.

  1. Passthrough port 8080 with ssl/TLS via haproxy from an restricted network to Internet
  2. Trying to reach an IDM server via HAProxy over Port 389

Advice on correct configuration would be appreciated. Thanks in advance

Hemantha