fix: add back custom proxy agent

This commit is contained in:
gauthier-th
2025-03-25 22:28:23 +01:00
committed by Gauthier
parent 470c96a4a0
commit 97784e568a

View File

@@ -24,6 +24,7 @@ import avatarproxy from '@server/routes/avatarproxy';
import imageproxy from '@server/routes/imageproxy';
import { appDataPermissions } from '@server/utils/appDataVolume';
import { getAppVersion } from '@server/utils/appVersion';
import createCustomProxyAgent from '@server/utils/customProxyAgent';
import restartFlag from '@server/utils/restartFlag';
import { getClientIp } from '@supercharge/request-ip';
import { TypeormStore } from 'connect-typeorm/out';
@@ -71,6 +72,11 @@ app
const settings = await getSettings().load();
restartFlag.initializeSettings(settings);
// Register HTTP proxy
if (settings.network.proxy.enabled) {
await createCustomProxyAgent(settings.network.proxy);
}
// Migrate library types
if (
settings.plex.libraries.length > 1 &&