-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.env
46 lines (39 loc) · 1.34 KB
/
sample.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# DATABASE DATAMART Configuration
DATABASE_DATAMART_URL=postgres://postgres:@localhost:5456/pix_api_data_datamart
TEST_DATABASE_DATAMART_URL=postgres://postgres:@localhost:5456/pix_api_data_datamart
#DATABASE_DATAMART_CONNECTION_POOL_MIN_SIZE=1
#DATABASE_DATAMART_CONNECTION_POOL_MAX_SIZE=1
#KNEX_ASYNC_STACKTRACE_ENABLED_DATAMART=false
PIX_DATABASE_PORT_DATAMART=5456
# DATABASE API Configuration
DATABASE_API_URL=postgres://postgres:@localhost:5455/pix_api_data
TEST_DATABASE_API_URL=postgres://postgres:@localhost:5455/pix_api_data_test
#DATABASE_API_CONNECTION_POOL_MIN_SIZE=1
#DATABASE_API_CONNECTION_POOL_MAX_SIZE=1
#KNEX_ASYNC_STACKTRACE_ENABLED_API=false
PIX_DATABASE_PORT_API=5455
# JWT Authentication
BCRYPT_NUMBER_OF_SALT_ROUNDS=10
JWT_SECRET=LMKNJBHG2JJLKMJHIOOU897
ACCESS_TOKEN_LIFESPAN=1h
# logs configuration
LOG_ENABLED=true
LOG_LEVEL=debug
# ========
# LOGIN
# ========
# Default number of failure before the user is temporary blocked
# presence: optional
# type: number
# default: 10
# LOGIN_TEMPORARY_BLOCKING_THRESHOLD_FAILURE_COUNT=10
# Default number of minutes the user need to wait before being unblocked
# presence: optional
# type: string
# default: '2m'
# LOGIN_TEMPORARY_BLOCKING_BASE_TIME=2m
# Default number of failure before the user is blocked
# presence: optional
# type: number
# default: 50
# LOGIN_BLOCKING_LIMIT_FAILURE_COUNT=50