fix: trusted proxies (#14888)

This commit is contained in:
Daniel Dietzler
2024-12-27 16:51:07 +01:00
committed by GitHub
parent 05cea0fc69
commit 139090715e
3 changed files with 3 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ describe('getEnv', () => {
it('should return default network options', () => {
const { network } = getEnv();
expect(network).toEqual({
trustedProxies: [],
trustedProxies: ['linklocal', 'uniquelocal'],
});
});

View File

@@ -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: {