首先,我第一次这样做,我知道我迷失了方向。
我想使用Python作为我的网站的框架。但是我也想使用我的SSL证书和域。卫生医生里的方法不起作用。我在网上搜索,发现我需要nginx或Apache2。但我当时不知道该怎么做。
发布于 2020-03-29 16:05:53
为此使用Nginx代理可能是最好的。在https://sanic.readthedocs.io/en/latest/sanic/nginx.html上应该很快就会有一个完整的指南(一旦文档被重建,很快)。
要启用内置SSL支持,
app.run(host="0.0.0.0", port=443, ssl=dict(
cert="/etc/letsencrypt/live/example.com/fullchain.pem",
key="/etc/letsencrypt/live/example.com/privkey.pem",
))https://stackoverflow.com/questions/60907982
复制相似问题