瀏覽代碼

SSL support

JS00000 3 年之前
父節點
當前提交
29422edcc9
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      channel/wechatmp/wechatmp_channel.py

+ 7 - 0
channel/wechatmp/wechatmp_channel.py

@@ -15,6 +15,13 @@ from plugins import *
 import traceback
 import redis
 
+# If using SSL, uncomment the following lines, and modify the certificate path.
+# from cheroot.server import HTTPServer
+# from cheroot.ssl.builtin import BuiltinSSLAdapter
+# HTTPServer.ssl_adapter = BuiltinSSLAdapter(
+#         certificate='/ssl/cert.pem',
+#         private_key='/ssl/cert.key')
+
 class WechatMPServer():
     def __init__(self):
         pass