feat: ota
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user