音频转换及上传upyun

This commit is contained in:
moicen
2022-01-28 02:25:18 +08:00
committed by 木逸辰
parent 862aff55da
commit 6f02e88c37
6 changed files with 54 additions and 51 deletions
+5
View File
@@ -14,6 +14,7 @@ server {
set $htyuc "http://127.0.0.1:3000"; #htyuc host
set $resty_loc "/usr/local/openresty";
set $convert "/usr/bin/convert";
set $upyun_cdn "https://upyun.alchemy-studio.cn/";
location / {
try_files $uri $uri/ /index.html;
@@ -54,6 +55,10 @@ server {
content_by_lua_file $resty_loc/nginx/scripts/convert_audio.lua;
}
location /api/ngx/convert/test {
content_by_lua_file $resty_loc/nginx/scripts/test.lua;
}
location /api/v1/ws/ {
proxy_pass http://127.0.0.1:3001/api/v1/ws/;
}
+1 -2
View File
@@ -19,8 +19,7 @@ server {
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";
set $upyun_cdn "https://upyun.alchemy-studio.cn/";
location / {
try_files $uri $uri/ /index.html;