docker: allow to control import/export rate limiting parameters

The newly introduces environment variables are IMPORT_EXPORT_RATE_LIMIT_WINDOW
and IMPORT_EXPORT_MAX_REQ_PER_IP.
This commit is contained in:
muxator 2020-04-13 02:15:24 +02:00 committed by muxator
parent c9d55c81a3
commit 5acbdb83e5
2 changed files with 4 additions and 2 deletions

View file

@ -419,10 +419,10 @@
*/
"importExportRateLimiting": {
// duration of the rate limit window (milliseconds)
"windowMs": 90000,
"windowMs": "${IMPORT_EXPORT_RATE_LIMIT_WINDOW:90000}",
// maximum number of requests per IP to allow during the rate limit window
"max": 10
"max": "${IMPORT_EXPORT_MAX_REQ_PER_IP:10}"
},
/*