lua-resty-session 是一个面向 OpenResty 的安全和灵活的 session 库,它实现了 Secure Cookie Protocol。
更详细的说明请查看
https://github.com/bungle/lua-resty-session/blob/master/README.md
http { server { listen 8080; server_name localhost; default_type text/html; location / { content_by_lua ' ngx.say("<html><body><a href=/start>Start the test</a>!</body></html>") '; } location /start { content_by_lua ' local session = require "resty.session".start() session.data.name = "OpenResty Fan" session:save() ngx.say("<html><body>Session started. ", "<a href=/test>Check if it is working</a>!</body></html>") '; } location /test { content_by_lua ' local session = require "resty.session".open() ngx.say("<html><body>Session was started by <strong>", session.data.name or "Anonymous", "</strong>! <a href=/destroy>Destroy the session</a>.</body></html>") '; } location /destroy { content_by_lua ' local session = require "resty.session".start() session:destroy() ngx.say("<html><body>Session was destroyed. ", "<a href=/check>Is it really so</a>?</body></html>") '; } location /check { content_by_lua ' local session = require "resty.session".open() ngx.say("<html><body>Session was really destroyed, you are known as ", "<strong>", session.data.name or "Anonymous", "</strong>! <a href=/>Start again</a>.</body></html>") '; } } }
lua-resty-yii 一个基于OpenResty的仿Yii的web框架,通过本框架能够极大降低openresty的开发入门门槛。 [English](README.md) 系统要求 安装OpenResty 1.0以上版本 https://openresty.org/en/download.html 快速开始 Linux:修改runtime/start.sh中/usr/local/openre
一、下载软件: 下载ngx_openresty-xxx.tar.gz并解压 wget https://openresty.org/download/ngx_openresty-1.9.7.1.tar.gz ngx_openresty-xxx/bundle目录里存放着nginx核心和很多第三方模块,比如有我们需要的Lua和LuaJIT。 安装LuaJIT cd bundle/LuaJIT-2.
简介 Botsonar 一款企业使用的反爬虫管理平台。该平台集爬虫发现,策略,防御,流量分析于一体,目前处于 Alpha 测试版本,开源测试版本为旁路分析模式。 站点概览 防御和威胁分类 攻击 IP 详情 访问路径 路径威胁详情 特性 全站流量统计 IP 攻击分类 搜索引擎自动放行 威胁类型分类 验证码推送支持 IP、Country、UA 策略 会话频率限制 Javascript 检查 黑产 IP
一个基于 OpenResty 的仿 Yii 的 web 框架,通过本框架能够极大降低openresty的开发入门门槛。 运行机制概述 每一次应用开始处理 HTTP 请求时,它都会进行一个近似的流程。 用户提交指向 入口脚本 index.lua 的请求 入口脚本会创建一个 应用(Application) 实例用于处理该请求,并加载配置。 应用会通过 request(请求) 应用组件解析被请求的路由。
Lua-Resty-Checkups是一个基于lua的upstream管理和健康检查模块,由又拍云开源。 特点: 支持周期性upstream服务管理操作 支持管理和健康检查 支持upstream动态更新 有利于加权轮询或哈希平衡 支持 Nginx C upstream同步操作 可使用级别和键值实现集群 使用简介: -- config.lua_M = {}_M.global = { check
lua-resty-weauth,适用于 OpenResty / ngx_lua 的基于企业微信组织架构的登录认证。 使用 下载 cd /path/togit clone git@github.com:ledgetech/lua-resty-http.gitgit clone git@github.com:SkyLothar/lua-resty-jwt.gitgit clone git@githu
lua-resty-ffi提供了一个通用高效的接口,使得你可以使用Go,Python,Java和Rust为 OpenResty/Nginx 直接开发你想要的功能。 众所周知,OpenResty使用的lua和C,生态很弱,很多重造的轮子也缺乏维护,以至于跟外围生态系统互通时,巧妇难为无米之炊。 特色: 非阻塞,以协程的方式运行 简单可扩展的接口,支持任何符合C ABI的语言 一劳永逸,无需再编写任何
Streaming reader and parser for HTTP file uploading based on Lua Nginx Module's cosocket API. Project homepage: https://github.com/agentzh/lua-resty-upload This library is enabled by default. You can