add upyun operation (#45)
* add upyun operation * uft8 encoder fail * calculate authorization ok * clean up * clean up
This commit is contained in:
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user