Frontend section in HAProxy config file have been splitted in two.

One for  http and for https.

I have also added a **X-Forwarded-Proto** header to the request for identifying the originating protocol of the  request to the  backend.

 It might make sense to make the second change customizable by doing something similar to the already existing backend configuration. By, for example, adding a **frontend_options** to the `INTERLOCK_DATA` JSON and use it to configure HAProxy. 

Yes :) but I did not do it like you suggest because maybe there are other options that might apply to just one of the sections. Anyway, my knowledge of HAProxy is quite limited.