feat: ota

This commit is contained in:
zzw
2026-09-22 16:47:29 +08:00
parent eb98c5bf5a
commit fdf5825d83
2 changed files with 10 additions and 3 deletions
+3
View File
@@ -31,6 +31,9 @@ deployment:
# http层共享字典(仅http使用)
nginx_config:
lua_package_path: "/usr/local/apisix/?.lua;;"
http:
client_max_body_size: 128m
client_body_buffer_size: 2m
lua_shared_dict:
prometheus-metrics 10m
prometheus-cache 10m
+7 -3
View File
@@ -16,10 +16,14 @@ function _M.access(conf, ctx)
["/api/v3/version"] = true,
["/admin/v3/login"] = true,
["/admin/v3/refresh"] = true,
["/admin/v3/refresh"] = true,
["/api/v3/express/sf"] = true,
["/api/v3/express/jd"] = true,
["/api/v3/express/sf"] = true,
["/api/v3/express/jd"] = true,
["/api/v3/version"] = true,
["/api/v3/chore/oss/upload"] = true,
}
local user_key = core.request.header(ctx, "authorization")