env for elasticsearch scheme

needed for people who force ssl with redirects and don't want to have
the extra redirect on every request