From 0eff26a1c912b7bdb703eb001c9e1333cd0356b5 Mon Sep 17 00:00:00 2001 From: Hampus Date: Wed, 9 Sep 2026 01:32:36 +0200 Subject: [PATCH] test(config): match the configurable client-IP trust defaults (#2625) --- .../src/__tests__/SelfHostingComposeEnvironment.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/config/src/__tests__/SelfHostingComposeEnvironment.test.ts b/packages/config/src/__tests__/SelfHostingComposeEnvironment.test.ts index d0c6a9cb8..5d69af69d 100644 --- a/packages/config/src/__tests__/SelfHostingComposeEnvironment.test.ts +++ b/packages/config/src/__tests__/SelfHostingComposeEnvironment.test.ts @@ -32,7 +32,7 @@ describe('the shipped compose stack wires every service it starts', () => { }); test('the shared block sets the client-IP trust the merged services read', () => { - expect(sharedEnv).toContain('FLUXER_TRUST_CLIENT_IP_HEADER: "true"'); - expect(sharedEnv).toContain('FLUXER_CLIENT_IP_HEADER_NAME: x-forwarded-for'); + expect(sharedEnv).toContain('FLUXER_TRUST_CLIENT_IP_HEADER: "${FLUXER_TRUST_CLIENT_IP_HEADER:-true}"'); + expect(sharedEnv).toContain('FLUXER_CLIENT_IP_HEADER_NAME: ${FLUXER_CLIENT_IP_HEADER_NAME:-x-forwarded-for}'); }); });