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