removed http to be based on env variable