add upyun operation (#45)

* add upyun operation

* uft8 encoder fail

* calculate authorization ok

* clean up

* clean up
This commit is contained in:
XiaoLi
2022-01-13 19:37:01 +08:00
committed by GitHub
parent c9ef8eff33
commit 6580d73d31
5 changed files with 125 additions and 1 deletions
+9 -1
View File
@@ -49,7 +49,11 @@ server {
set $task_server "http://127.0.0.1:8080"; # task server host
set $htyuc "http://127.0.0.1:3000"; #htyuc host
set $resty_loc "/usr/local/opt/openresty"; # MacOS
set $upyun_operator "moicen";
set $upyun_passwd = "NyJ51zRwFApY9Wo9EHJMrb8GI9YtvpVN";
#set $resty_loc "/usr/local/opt/openresty"; # MacOS
set $resty_loc "/usr/local/openresty"; # CentOS
set $convert "/usr/local/bin/convert";
location / {
@@ -87,6 +91,10 @@ server {
location /api/ngx/audio/convert {
content_by_lua_file $resty_loc/resty_funcs/convert_audio.lua;
}
#Upyun token
location /api/ngx/upyun_token{
content_by_lua_file $resty_loc/resty_funcs/upyun_token.lua;
}
#Static file server
location /file_upload {
default_type "";