Use env var to turn HTTPS on or off.

Using an env var to turn SSL on or off allows for more flexibility.