lighttpd
lighttpd 是一个轻量级的 HTTP 服务器,可以通过 mod_proxy 模块配置为合适的反向代理。
SSL
使用 OpenSSL 的 mod_openssl 模块实现的 SSL 支持 可能如下所示:
$SERVER["socket"] == "[::]:443" {
ssl.engine = "enable"
ssl.cipher-list = "HIGH"
$HTTP["host"] == "owncast.yourdomain.com" {
ssl.pemfile = "/etc/letsencrypt/live/yourdomain.com/fullchain.pem"
ssl.privkey = "/etc/letsencrypt/live/yourdomain.com/privkey.pem"
ssl.dh-file = "/etc/letsencrypt/ssl-dhparams.pem"
}
}
反向代理
传入的 websocket 连接的代理功能与模块集成。
lighttpd 的示例配置可能如下所示:
$HTTP["host"] == "owncast.yourdomain.com" {
# Forward all requests to Owncast:
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8080 ) ) )
proxy.forwarded = ( "host" => 1,
"proto" => 1,
"for" => 1,
"remote_user" => 1 )
# Required for websocket (chat) forwarding:
proxy.header = ( "upgrade" => "enable" )
}
Improve this page
See something missing or incorrect? Edit this page and improve the documentation for everyone.
Contributors to this documentation
