added env variable to set protocol being used (http|s)