configure webapp haproxy couchdb connection