[https] Improved config structure. Related to #98.