
lua
bytedance-踏锋
专注于音视频、webrtc、rtmp、RTP/RTCP、nginx、golang、hls、dash、flv、hds
展开
-
Nginx 反向代理的基本配置及命令解析(以HLS为例子 )
Nginx 反向代理的基本配置及命令解析1.proxy_pass 语法: proxy_pass URL; 配置块:: location, if in location, limit_except 此配置项将当前请求反向代理到URL参数指定的服务器上。协议可以是”http”或”https”。URL可以是主机名或IP地址加端口的形式,例如:proxy_pass http://local原创 2017-10-22 00:13:58 · 3845 阅读 · 0 评论 -
Nginx Lua 三种重定向的使用及比较
lua 三种重定向的使用及比较1. ngx.exec 语法:ngx.exec(uri, args?) 主要实现的是内部的重定向,等价于下面的rewrite指令:rewrite regrex replacement last; 例子:ngx.exec('/some-location');ngx.exec('/some-location', 'a=3&b=5&c=6');ngx.exe原创 2017-10-17 00:40:13 · 18381 阅读 · 0 评论 -
openrestry 火焰图
1. 安装前的准备1.1 确定/etc/yum.repos.d/CentOS-Debuginfo.repo是否存在.如果不存在,则创建,并写入如下内容# CentOS-Debug.repo## The mirror system uses the connecting IP address of the client and the# update status of each m...原创 2018-12-15 11:38:36 · 492 阅读 · 0 评论