Updated nginx config to use http, added regex replace for elasticsearch config