Added HTTPs configuration support.