将文件目录修改为全局配置
This commit is contained in:
parent
4f4ab0d2bb
commit
0deb9ad029
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/auth {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/auth/auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/auth/auth.lua';
|
||||
}
|
||||
|
|
@ -12,7 +12,7 @@ http {
|
|||
client_max_body_size 1024M; #允许最大100k的请求体
|
||||
client_body_buffer_size 1024M; #设置缓冲区大小
|
||||
|
||||
lua_package_path '$prefix/src/?/?.lua;$prefix/src/?.lua;/home/frankly/work/AuthPlatform/src/?.lua;/home/frankly/work/AuthPlatform/src/?/?.lua;;';
|
||||
lua_package_path '$prefix/src/?/?.lua;$prefix/src/?.lua;;';
|
||||
lua_package_cpath '$prefix/src/share/lib/?.so;;';
|
||||
|
||||
# Path of the file with trusted CA certificates.
|
||||
|
|
@ -29,6 +29,8 @@ http {
|
|||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
## 应用路径
|
||||
set $APP_PATH '/home/frankly/work/AuthPlatform';
|
||||
#登录认证配置
|
||||
include 'auth/auth.conf';
|
||||
#数据列表配置
|
||||
|
|
@ -41,10 +43,10 @@ http {
|
|||
|
||||
#测试接口配置
|
||||
location /testSQL {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/test/testPostgres.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/test/testPostgres.lua';
|
||||
}
|
||||
location /cjson {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/test/test.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/test/test.lua';
|
||||
}
|
||||
#jwt验证进行测试
|
||||
location /api/test {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/system/accounts {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/system/account.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/account.lua';
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/system/applications {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/system/application.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/application.lua';
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/system/organizations {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/system/organization.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/organization.lua';
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/system/permissions {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/system/permission.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/permission.lua';
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/system/roles {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/system/role.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/role.lua';
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#API接口文件
|
||||
location /api/system/users {
|
||||
content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/system/user.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/user.lua';
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user