convert audio

This commit is contained in:
moicen
2022-01-14 14:11:17 +08:00
committed by 阿男
parent 6580d73d31
commit fd39e6c8ae
6 changed files with 935 additions and 57 deletions
+8 -1
View File
@@ -15,6 +15,13 @@ server {
set $resty_loc "/usr/local/openresty";
set $convert "/usr/bin/convert";
set $upyun_operator "moicen";
set $upyun_password = "NyJ51zRwFApY9Wo9EHJMrb8GI9YtvpVN";
set $upyun_bucket "huiwing";
set $upyun_directory "music-room"
set $upyun_cdn "https://upyun.alchemy-studio.cn/music-room/"
set $upyun_api "https://v2.api.upyun.com";
location / {
try_files $uri $uri/ /index.html;
proxy_set_header Host "test-music-room.moicen.com";
@@ -51,7 +58,7 @@ server {
content_by_lua_file $resty_loc/resty_funcs/convert_audio.lua;
}
#Upyun token
location /api/ngx/upyun_token{
location /api/ngx/upyun/token{
content_by_lua_file $resty_loc/resty_funcs/upyun_token.lua;
}
#Static file server