add useProxies config to support x-forwarded headers in express

This commit is contained in:
Art Lowel
2022-09-28 13:10:46 +02:00
parent 241816e836
commit 941e71a75b
5 changed files with 16 additions and 2 deletions

View File

@@ -37,7 +37,10 @@ export class DefaultAppConfig implements AppConfig {
rateLimiter: {
windowMs: 1 * 60 * 1000, // 1 minute
max: 500 // limit each IP to 500 requests per windowMs
}
},
// Trust X-FORWARDED-* headers from proxies
useProxies: true,
};
// The REST API server settings