add chek file and upload combined image verify

This commit is contained in:
XiaoLi
2022-08-31 23:34:54 +08:00
committed by 阿男
parent 3a724b822d
commit 2f0a22528c
4 changed files with 32 additions and 12 deletions
+8 -11
View File
@@ -41,6 +41,14 @@ server {
return 200;
}
location /api/ngx/image/check {
content_by_lua_file $resty_loc/nginx/scripts/check_file.lua;
}
location /api/ngx/image/upload_combined {
content_by_lua_file $resty_loc/nginx/scripts/upload_combined_image.lua;
}
#Upload image files
location /api/ngx/image/upload {
content_by_lua_file $resty_loc/nginx/scripts/old_upload.lua;
@@ -57,21 +65,10 @@ server {
location /api/ngx/image/wx_upload_to_combine {
content_by_lua_file $resty_loc/nginx/scripts/wx_upload_to_combine.lua;
}
#Combine image files
location /api/ngx/image/combine {
content_by_lua_file $resty_loc/nginx/scripts/combine.lua;
}
location /api/ngx/image/check {
content_by_lua_file $resty_loc/nginx/scripts/check_file.lua;
}
location /api/ngx/image/upload_combined {
content_by_lua_file $resty_loc/nginx/scripts/upload_combined_image.lua;
}
#Audio file download
location /api/ngx/audio/upload {
content_by_lua_file $resty_loc/nginx/scripts/upload_audio.lua;