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. 

Again, I dont know so much about HAProxy to give a good example, by googling a bit it seems that is quite common to have the two sections, but for this project might not be needed.

But for me it is quite clear that having a different value for the **X-Forwarded-Proto** header is important.  And that not depends on whether I have configured ssl, but on each request protocol. If it is https the header value must be **https** if not the value must be **http**.