Add upyun remove
This commit is contained in:
@@ -55,6 +55,11 @@ server {
|
||||
location /api/ngx/image/upload_combined {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload_combined_image.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/image/upyun_remove {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upyun_remove.lua;
|
||||
}
|
||||
|
||||
#Upload image files
|
||||
location /api/ngx/image/upload {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/old_upload.lua;
|
||||
|
||||
@@ -50,6 +50,10 @@ server {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload_combined_image.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/image/upyun_remove {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upyun_remove.lua;
|
||||
}
|
||||
|
||||
#Upload image files
|
||||
location /api/ngx/image/upload {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/old_upload.lua;
|
||||
|
||||
@@ -7,8 +7,8 @@ server {
|
||||
|
||||
set $tmp_file_dir "/usr/local/file_upload"; # 文件存储路径
|
||||
set $task_server "http://127.0.0.1:8080"; # task server host
|
||||
set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
# set $htyuc "https://admin.alchemy-studio.cn"; # Verified by admin.alchemy-studio.cn
|
||||
# set $htyuc "http://127.0.0.1:3000"; #htyuc host
|
||||
set $htyuc "https://admin.moicen.com"; #Verify jwt token
|
||||
set $resty_loc "/usr/local/opt/openresty";
|
||||
set $convert "/usr/local/bin/convert";
|
||||
set $upyun_operator "moicen";
|
||||
@@ -49,6 +49,11 @@ server {
|
||||
location /api/ngx/image/upload_combined {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload_combined_image.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/image/upyun_remove {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upyun_remove.lua;
|
||||
}
|
||||
|
||||
#Upload image files
|
||||
location /api/ngx/image/upload {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/old_upload.lua;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
#user nobody;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /usr/local/etc/openresty/logs/error.log debug;
|
||||
# error_log /usr/local/etc/openresty/logs/error.log debug;
|
||||
#error_log logs/error.log notice;
|
||||
#error_log logs/error.log info;
|
||||
error_log logs/error.log info;
|
||||
|
||||
#pid logs/nginx.pid;
|
||||
|
||||
|
||||
@@ -103,6 +103,10 @@ server {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload_combined_image.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/image/upyun_remove {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upyun_remove.lua;
|
||||
}
|
||||
|
||||
#Audio file download
|
||||
location /api/ngx/audio/upload {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload_audio.lua;
|
||||
|
||||
Reference in New Issue
Block a user