Add upyun remove

This commit is contained in:
XiaoLi
2024-01-03 22:14:25 +08:00
committed by XiaoLi
parent b4835ef305
commit ffab75c78a
9 changed files with 211 additions and 14 deletions
+7 -2
View File
@@ -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 -2
View File
@@ -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;