generate upyun token for access

This commit is contained in:
moicen
2022-07-16 03:07:37 +08:00
parent c2869d1a3b
commit a730521d5b
5 changed files with 32 additions and 0 deletions
+6
View File
@@ -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;
@@ -77,6 +79,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;
}