Cherrypy 3.2.0 : starting engine to run both HTTP and HTTPS in th same instance
问题 Good morning, I successfully start cherrypy 3.2.0 engine in HTTP OR HTTPS : # ssl variable commes input parameters. Bellow cherrypy configuration is fully configured if ssl: print('Setting up SSL') cherrypy.server.ssl_certificate = "conf/private/" + platform.node() + ".crt" cherrypy.server.ssl_private_key = "conf/private/" + platform.node() + ".key" ''' ---------------------------------- Start server instance ---------------------------------- ''' if hasattr(cherrypy.engine, 'block'): # 3.1