音频转换及上传upyun
This commit is contained in:
@@ -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/;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user