Changes to include a config to choose whether use ssl or not