3 Star 7 Fork 37

gotodsp / proxygateway

forked from 小飞 / proxygateway 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
manage.conf 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
fengfei 提交于 2016-05-08 02:06 . init
server {
listen 8081;
server_name localhost;
index index.html;
location /api/v1 {
access_by_lua_block{
local access = require "manage.access"
access.checkLogin()
}
content_by_lua_block{
local ctl = require "manage.controller"
ctl.run()
}
}
location /static {
#源码中html的实际路径
root /usr/local/openresty/nginx/proxygateway/html;
}
location / {
access_by_lua_block{
local access = require "manage.access"
access.checkLogin()
}
#源码中html的实际路径
root /usr/local/openresty/nginx/proxygateway/html;
}
}
Lua
1
https://gitee.com/gotodsp/proxygateway.git
git@gitee.com:gotodsp/proxygateway.git
gotodsp
proxygateway
proxygateway
master

搜索帮助