generate upyun token for access
This commit is contained in:
@@ -16,6 +16,8 @@ server {
|
||||
set $upyun_directory "music-room";
|
||||
set $upyun_cdn "https://upyun.dev.moicen.com/";
|
||||
set $wx_domain "dev.wx.moicen.com";
|
||||
set $upt_secret "C29DBA1F1EA4462088136C3A85C2FBFC";
|
||||
set $upt_duration 3600;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
@@ -79,6 +81,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