haproxy: backend mode can be different to frontend mode
rails: add proxy configuration