From 1435e380be4ff9ca6a440b366a9f3e19dc3a2967 Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Thu, 30 Mar 2023 15:35:16 +0500 Subject: [PATCH] chore: put comments on top of example in readme and .env.example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b3c460..766f5b1 100644 --- a/README.md +++ b/README.md @@ -179,13 +179,14 @@ HELMET_CSP_CONFIG_PATH=./csp.config.json # Only valid for MODE: server # Following are configurable env variable rate limiter -MAX_WRONG_ATTEMPTS_BY_IP_PER_DAY = default: 100; # After this, access is blocked for 1 day +MAX_WRONG_ATTEMPTS_BY_IP_PER_DAY = default: 100; + -MAX_CONSECUTIVE_FAILS_BY_USERNAME_AND_IP = default: 10; # After this, access is blocked for an hour # Store number for 90 days since first fail # Once a successful login is attempted, it resets +MAX_CONSECUTIVE_FAILS_BY_USERNAME_AND_IP = default: 10; # LOG_FORMAT_MORGAN options: [combined|common|dev|short|tiny] default: `common` # Docs: https://www.npmjs.com/package/morgan#predefined-formats