feat: 后端改为deno

This commit is contained in:
ethan.chen
2025-11-05 11:43:47 +08:00
parent ba3435e1a0
commit f67a3835fa
27 changed files with 1449 additions and 1404 deletions

28
backend-deno/config.ts Normal file
View File

@@ -0,0 +1,28 @@
/**
* 配置文件 (Deno 版本)
*/
export const config = {
// 服务器配置
port: parseInt(Deno.env.get("PORT") || "5000"),
host: "127.0.0.1",
// 歌词配置
lyrics: {
cacheDir: "./lyrics",
apiUrl: "http://123.57.93.143:28883",
apiKey: "fzt_tom",
},
// WebSocket 配置
websocket: {
heartbeatInterval: 30000, // 30秒
maxConnections: 100,
},
// 音乐控制配置
music: {
updateInterval: 1000, // 1秒
retryAttempts: 3,
},
};