test(config): match the configurable client-IP trust defaults (#2625)

This commit is contained in:
Hampus
2026-09-09 01:32:36 +02:00
committed by GitHub
parent d729f641ff
commit 0eff26a1c9
@@ -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}');
});
});