Made http/https configurable