resty-gate:基于OpenResty的API网关

时间:2024-05-22 11:46:01
【文件属性】:

文件名称:resty-gate:基于OpenResty的API网关

文件大小:9KB

文件格式:ZIP

更新时间:2024-05-22 11:46:01

Lua

resty-gate An API Gateway based on OpenResty. Features HTTPS 到 HTTP 代理, 使用 let's encrypt 证书. 每秒请求数限制. JWT 鉴权. upstream 负载均衡. Install Deps opm --cwd get openresty/lua-resty-limit-traffic opm --cwd get SkyLothar/lua-resty-jwt Run openresty -p . -c conf/nginx.conf Let's Enctrypt 生成证书 可以参考 这个文章进行操作. TEST JWT Test # apt-get install httpie || brew install httpie $ http --print HBhb localhost/verify


【文件预览】:
resty-gate-master
----conf()
--------mime.types(5KB)
--------nginx.conf(3KB)
----src()
--------faucet.lua(569B)
--------jwt_verify.lua(2KB)
----LICENSE(11KB)
----README.md(1KB)
----.gitignore(344B)

网友评论