This commit is contained in:
2024-06-19 17:17:40 +08:00
parent 248d51fffc
commit 663f8a69d8
2 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
[variable] [variable]
;项目目录 ;项目目录
base=${current_dir} base=${config_dir}
;网站程序目录 ;网站程序目录
www=${current_dir}/www www=${config_dir}/www
[scripts] [scripts]
; 模块目录 ; 模块目录
@@ -24,7 +24,7 @@ Initialization_script=
; 调试模式开启后启用LUA错误信息 (0=关闭 1=开启) ; 调试模式开启后启用LUA错误信息 (0=关闭 1=开启)
debug=1 debug=1
; 绑定域名 ; 绑定域名
domain=local.newobj.org,127.0.0.1 domain=local.newobj.org,0.0.0.0
; 允许请求URL的路径直接映射到网站路径中的lua。如你的站点只允许订阅绑定模式则设置为0关闭此功能以提高安全性。 ; 允许请求URL的路径直接映射到网站路径中的lua。如你的站点只允许订阅绑定模式则设置为0关闭此功能以提高安全性。
direct_url_mapping=1 direct_url_mapping=1
; 最大上传大小限制(MB),0为不限制 ; 最大上传大小限制(MB),0为不限制
@@ -62,7 +62,7 @@ ssl_ver_type=0
; 端口,默认https为443http为80 ; 端口,默认https为443http为80
port=8566 port=8566
[127.0.0.1] [0.0.0.0]
https=0 https=0
port=8866 port=8866

View File

@@ -25,7 +25,7 @@ local function login()
end end
-- 验证账号密码 -- 验证账号密码
if request.param("username") ~= "fastweb" or request.param("password") ~= "123456" then if request.param("username",false) ~= "fastweb" or request.param("password",false) ~= "123456" then
reply(201,"账号或密码不正确") reply(201,"账号或密码不正确")
return return
end end
@@ -58,8 +58,8 @@ local function getinfo()
end end
-- 判断请求类型 -- 判断请求类型
if request.param("action") == "login" then if request.param("action",false) == "login" then
login() login()
elseif request.param("action") == "getinfo" then elseif request.param("action",false) == "getinfo" then
getinfo() getinfo()
end end