skynet 开启 https 配置

修改 Makefile

Mac 下:

# https : turn on TLS_MODULE to add https support

TLS_MODULE=ltls
TLS_LIB="$(shell brew --prefix openssl)/lib"
TLS_INC="$(shell brew --prefix openssl)/include"

Linux 下:

# https : turn on TLS_MODULE to add https support

TLS_MODULE=ltls
TLS_LIB=
TLS_INC=

前提是都安装了 openssl

然后在 config 里配置

certfile = "./host.cert"
keyfile = "./host.key"

用 simpleweb.lua 测试,记得先把 http 改成 https

posted on 2020-02-10 22:41  明天有风吹  阅读(1627)  评论(0编辑  收藏  举报

导航

+V atob('d2h5X251bGw=')

请备注:from博客园