mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
perf: 优化反向代理配置
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user