libwebsockets介绍
libwebsockets是一款轻量级用来开发服务器和客户端的C库。它不仅支持ws,wss还同时支持http与https,可以轻轻松松结合openssl等库来实现ssl加密。
官方参考链接:
https://libwebsockets.org/
lighttpd版本
lighttpd/1.4.59 (ssl) - a light and fast webserver
usage:-f <name> filename of the config-file-m <name> module directory (default: /usr/lib)-i <secs> graceful shutdown after <secs> of inactivity-1 process single (one) request on stdin socket, then exit-p print the parsed config-file in internal form, and exit-t test config-file syntax, then exit-tt test config-file syntax, load and init modules, then exit-D don't go to background (default: go to background)-v show version-V show compile-time features-h show this help
lighttpd配置
配置安全策略需要添加ws:wss:配置
var.response_header_policy = (