Implemented logic to add mode property to ha proxy configuration frontend backend blocks