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. 

Thinking a bit more about it, I would say that it is quite convenient that the backend knows which was the original protocol, so both entries are needed imo.