Add express trustedProxy support

This commit is contained in:
Emma [it/its]@Rory&
2024-10-30 16:28:57 +01:00
parent a56ded91d5
commit 40b356ecdf
2 changed files with 7 additions and 0 deletions
@@ -29,6 +29,9 @@ export class SecurityConfiguration {
// X-Forwarded-For for nginx/reverse proxies
// CF-Connecting-IP for cloudflare
forwardedFor: string | null = null;
// trusted proxies to get the real user ip address
// requires a reverse proxy to overwrite X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Proto
trustedProxies: string | boolean | null = null;
ipdataApiKey: string | null =
"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9";
mfaBackupCodeCount: number = 10;