The reason for it being this way is to allow kibana to run behind apache/nginx without exposing the ES server entirely. I'm not quite sure this will work since the client has to make the connection to ES and it might not be accessible.