split form upload and wx upload, refactor file structure

This commit is contained in:
moicen
2022-06-26 14:30:59 +08:00
committed by 木逸辰
parent ef205b12c8
commit 8ee4eb11ea
15 changed files with 450 additions and 112 deletions
+13 -1
View File
@@ -48,7 +48,19 @@ server {
#Upload image files
location /api/ngx/image/upload {
content_by_lua_file $resty_loc/nginx/scripts/upload.lua;
content_by_lua_file $resty_loc/nginx/scripts/old_upload.lua;
}
#upload image from weixin media
location /api/ngx/image/wx_upload_single {
content_by_lua_file $resty_loc/nginx/scripts/wx_upload_single.lua;
}
#upload image files to combine by form
location /api/ngx/image/form_upload_to_combine {
content_by_lua_file $resty_loc/nginx/scripts/form_upload_to_combine.lua;
}
#Upload image files to combine by wx
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 {