Added option to enable/disable https/ssl