1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-10 16:00:05 +00:00

chore: put comments on top of example in readme and .env.example

This commit is contained in:
2023-03-30 15:35:16 +05:00
parent e099f2e678
commit 1435e380be

View File

@@ -179,13 +179,14 @@ HELMET_CSP_CONFIG_PATH=./csp.config.json
# Only valid for MODE: server # Only valid for MODE: server
# Following are configurable env variable rate limiter # Following are configurable env variable rate limiter
MAX_WRONG_ATTEMPTS_BY_IP_PER_DAY = <number> default: 100;
# After this, access is blocked for 1 day # After this, access is blocked for 1 day
MAX_WRONG_ATTEMPTS_BY_IP_PER_DAY = <number> default: 100;
MAX_CONSECUTIVE_FAILS_BY_USERNAME_AND_IP = <number> default: 10;
# After this, access is blocked for an hour # After this, access is blocked for an hour
# Store number for 90 days since first fail # Store number for 90 days since first fail
# Once a successful login is attempted, it resets # Once a successful login is attempted, it resets
MAX_CONSECUTIVE_FAILS_BY_USERNAME_AND_IP = <number> default: 10;
# LOG_FORMAT_MORGAN options: [combined|common|dev|short|tiny] default: `common` # LOG_FORMAT_MORGAN options: [combined|common|dev|short|tiny] default: `common`
# Docs: https://www.npmjs.com/package/morgan#predefined-formats # Docs: https://www.npmjs.com/package/morgan#predefined-formats