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