openresty lua 发送http请求 openresty中http请求 环境构建:openresty docker openresty实践:openresty最佳实践 依赖:lua-resty-http 可直接下载http.lua/http_headers.lua放到/usr/local/openresty/lualib/resty/目录下即可 lua脚本对请求拦截 nginx.conf配置文件中如下处理 http模块中添加 serv......
lua-resty-auto-ssl 开源地址https://github.com/auto-ssl/lua-resty-auto-ssllua-resty-auto-ssl 介绍自动注册 Let's Encrypt 账号,以及自动更新https证书(Let's Encrypt颁发的证书3个月过期)。支持OpenResty 1.9.7.2及以上版本(目前最新版本openresty-1.19.3.1)。lua...
mkdir-p /tmp/luarocks_lua-resty-auto-ssl-0.13.1-1-E0EIpg/lua-resty-auto-ssl/build/bin curl -sSLo /tmp/luarocks_lua-resty-auto-ssl-0.13.1-1-E0EIpg/lua-resty-auto-ssl/build/bin/dehydrated"https://raw.githubusercontent.com/lukas2511/dehydrated/05eda91a2fbaed1e13c733230238fc68475c535e...
LuaJIT FFI bindings for Snappy, a fast compressor/decompressor (https://code.google.com/p/snappy/) - bungle/lua-resty-snappy
lua-resty-lrucache lua-resty-string ngx_memc ngx_postgres ngx_redis2 ngx_redis ngx_proxy ngx_fastcgi 几乎所有的 Nginx 模块都可以通过ngx.location.capture或ngx.location.capture_multi与 ngx_lua 模块完成调用,但推荐使用类似lua-resty-*库,而不是子请求访问 Nginx 上游模块,因为前者更加灵活并且内存效率更...
openresty-lua-timer 介绍 基于openresty ngx_lua开发的一款应用于定时作业的定时器框架,支持创建和取消定时器。框架基础代码从开源项目lua-resty-timer(https://github.com/Kong/lua-resty-timer)而来,但对框架存在的内存泄漏问题进行了修复,并添加了一些方便管理的接口,及一些代码机制的调整。 安装教程 下载源码, 使...
通常来说,如果你安装的是官方版本的OpenResty,resty.core模块应该是默认包含的。 你可以尝试在OpenResty的安装目录中的lualib或类似目录下查找resty/core.lua文件来确认模块是否存在。 确保nginx配置文件中的模块加载路径正确: 在nginx的配置文件中(通常是nginx.conf),你需要确保加载了resty.core模块。这通常是通过在ht...
lua-codec工具包 鉴于网上很难找全相应的Lua工具,或者难用的要死,因此创建本项目; 基于openssl,实现常用的加密、摘要算法的Lua工具包,如hmac, md5, aes, rsa等,具体功能参见示例代码; 编译说明 我是基于LuaJIT-2.0.3和openssl 1.0.0编译的,可以根据你的环境改codec.c的include以及Makefile; cd src/ make ...