From 0deb9ad02966cf7eb44b42ee1b0bcab9f5f5e407 Mon Sep 17 00:00:00 2001 From: wanglei <34475144@qq.com> Date: Thu, 30 Oct 2025 20:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=96=87=E4=BB=B6=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=85=A8=E5=B1=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/auth/auth.conf | 2 +- conf/nginx.conf | 8 +++++--- conf/system/account.conf | 2 +- conf/system/application.conf | 2 +- conf/system/department.conf | 2 +- conf/system/permission.conf | 2 +- conf/system/role.conf | 2 +- conf/system/user.conf | 2 +- 8 files changed, 12 insertions(+), 10 deletions(-) diff --git a/conf/auth/auth.conf b/conf/auth/auth.conf index b5782f1..f4820c5 100644 --- a/conf/auth/auth.conf +++ b/conf/auth/auth.conf @@ -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'; } \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf index 2ec4049..d0487dd 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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 { diff --git a/conf/system/account.conf b/conf/system/account.conf index 6292344..2180dd7 100644 --- a/conf/system/account.conf +++ b/conf/system/account.conf @@ -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'; } \ No newline at end of file diff --git a/conf/system/application.conf b/conf/system/application.conf index c80204c..ca81c71 100644 --- a/conf/system/application.conf +++ b/conf/system/application.conf @@ -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'; } \ No newline at end of file diff --git a/conf/system/department.conf b/conf/system/department.conf index 9acb9e4..b8f8439 100644 --- a/conf/system/department.conf +++ b/conf/system/department.conf @@ -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'; } \ No newline at end of file diff --git a/conf/system/permission.conf b/conf/system/permission.conf index a4d2de2..73c9dea 100644 --- a/conf/system/permission.conf +++ b/conf/system/permission.conf @@ -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'; } \ No newline at end of file diff --git a/conf/system/role.conf b/conf/system/role.conf index b056e5e..180bc6c 100644 --- a/conf/system/role.conf +++ b/conf/system/role.conf @@ -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'; } \ No newline at end of file diff --git a/conf/system/user.conf b/conf/system/user.conf index 9549a3a..587f16e 100644 --- a/conf/system/user.conf +++ b/conf/system/user.conf @@ -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'; } \ No newline at end of file