generate upyun token for access
This commit is contained in:
@@ -23,6 +23,8 @@ server {
|
||||
set $upyun_directory "music-room";
|
||||
set $upyun_cdn "https://upyun.moicen.com/";
|
||||
set $wx_domain "wx.moicen.com";
|
||||
set $upt_secret "C29DBA1F1EA4462088136C3A85C2FBFC";
|
||||
set $upt_duration 3600;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
@@ -85,6 +87,10 @@ server {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/convert_audio.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/upt {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upt.lua;
|
||||
}
|
||||
|
||||
location /api/ngx/convert/test {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/test.lua;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user