perf: 优化反向代理配置

This commit is contained in:
MoeFurina
2025-08-24 23:10:07 +08:00
committed by ImFurina
parent 771777b669
commit b598978628
6 changed files with 14 additions and 7 deletions
+2 -1
View File
@@ -262,7 +262,8 @@ async function consturctServer(moduleDefs) {
}
if (song.url.includes('kuwo')) {
const proxy = process.env.PROXY_URL;
if (proxy) {song.proxyUrl = proxy + song.url}
const useProxy = process.env.ENABLE_PROXY || 'false'
if (useProxy === 'true' && proxy) {song.proxyUrl = proxy + song.url}
}
}