diff --git a/server/src/repositories/config.repository.ts b/server/src/repositories/config.repository.ts index a8a1c9972b3d5..cc05fd927c020 100644 --- a/server/src/repositories/config.repository.ts +++ b/server/src/repositories/config.repository.ts @@ -177,7 +177,7 @@ const getEnv = (): EnvData => { licensePublicKey: isProd ? productionKeys : stagingKeys, network: { - trustedProxies: dto.IMMICH_TRUSTED_PROXIES ?? [], + trustedProxies: dto.IMMICH_TRUSTED_PROXIES ?? ['linklocal', 'uniquelocal'], }, otel: { diff --git a/server/src/workers/api.ts b/server/src/workers/api.ts index 5196e7595ccea..efc705deafb97 100644 --- a/server/src/workers/api.ts +++ b/server/src/workers/api.ts @@ -32,7 +32,7 @@ async function bootstrap() { logger.setContext('Bootstrap'); app.useLogger(logger); - app.set('trust proxy', ['loopback', 'linklocal', 'uniquelocal', ...network.trustedProxies]); + app.set('trust proxy', ['loopback', ...network.trustedProxies]); app.set('etag', 'strong'); app.use(cookieParser()); app.use(json({ limit: '10mb' }));