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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM