74348: Fix security issues reported by LGTM

This commit is contained in:
Yana De Pauw
2020-11-06 14:30:39 +01:00
parent 1e87f2b742
commit 5ef7ae1b86
7 changed files with 45 additions and 4 deletions

View File

@@ -13,6 +13,10 @@ export const environment: GlobalConfig = {
port: 4000,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/',
rateLimiter: {
windowMs: 1 * 60 * 1000,
max: 100
}
},
// The REST API server settings.
// NOTE: these must be "synced" with the 'dspace.server.url' setting in your backend's local.cfg.