nicer code
pass only one port argument to template
adapt haproxy config for ssl