【文件属性】:
文件名称:api-gateway:api网关
文件大小:62KB
文件格式:ZIP
更新时间:2021-03-08 22:51:00
Lua
API网关
功能支持
支持黑白名单设置(IP,请求头,自定义细分)
支持基于“漏桶”算法请求限流
支持cas token转换为jwt token
支持自定义定义拦截规则
启动openresty服务
openresty -p ` pwd ` -c conf/nginx.conf
Visual Studio代码+ LUA ide
支持LUA ide调试调试
require ( " LuaDebugOpenrestyJit " )( " localhost " , 7003 )
Nginx.conf
worker_processes 1 ;
error_log logs/error.log;
events {
worker_connections 1024 ;
}
http {
lua_package_path " $prefix /src/?.lua;;" ;
init_
【文件预览】:
api-gateway-master
----html()
--------index.html(20B)
----src()
--------.gitignore(385B)
--------cyclone()
--------LuaDebugOpenrestyJit.lua(82KB)
--------init.lua(1KB)
----README.md(1KB)
----socket.so(38KB)
----.vscode()
--------settings.json(111B)
--------launch.json(1KB)
----conf()
--------mime.types(5KB)
--------nginx.conf.bak(606B)
--------nginx.conf(1KB)
--------nginx.conf.bak.conf(1KB)
----logs()
--------error.log(18KB)