feat: 后端改为deno
This commit is contained in:
28
backend-deno/config.ts
Normal file
28
backend-deno/config.ts
Normal 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,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user