From 29422edcc96acda3eda1bf00c114e6978c927852 Mon Sep 17 00:00:00 2001 From: JS00000 Date: Mon, 3 Apr 2023 20:00:20 +0800 Subject: [PATCH] SSL support --- channel/wechatmp/wechatmp_channel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/channel/wechatmp/wechatmp_channel.py b/channel/wechatmp/wechatmp_channel.py index 85393e6..aa81048 100644 --- a/channel/wechatmp/wechatmp_channel.py +++ b/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