-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.test.example
More file actions
58 lines (45 loc) · 1.05 KB
/
Copy path.env.test.example
File metadata and controls
58 lines (45 loc) · 1.05 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
# .test.env.example
# This set the envionment variable for the test environment
# Environment Name
NODE_ENV=test
# TimeZone
TZ=UTC
# Server listen to this port
PORT=3001
#Cors
CORS_URL=*
# Databse
# YOUR_TEST_MONGO_DB_NAME
DB_NAME=blogs-test-db
DB_MIN_POOL_SIZE=2
DB_MAX_POOL_SIZE=5
# localhost or IP of the server
# If using the docker installation then use 'mongo' for host name else localhost or ip or db server
# YOUR_MONGO_DB_HOST_NAME
# DB_HOST=localhost
DB_HOST=mongo
DB_PORT=27017
# YOUR_TEST_MONGO_DB_USER_NAME
DB_USER=blogs-test-db-user
# YOUR_TEST_MONGO_DB_USER_PWD
DB_USER_PWD=changeit
# Redis
# REDIS_HOST=localhost
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=changeit
# Log
# Example '/home/node/logs'
# DEFAUlT is this project's directory
# LOG_DIR=YOUR_TEST_DIRECTORY_PATH_FOR_LOG_FILES
# Token Info
# 2 DAYS: 172800 Sec
ACCESS_TOKEN_VALIDITY_SEC=172800
# 7 DAYS: 604800 Sec
REFRESH_TOKEN_VALIDITY_SEC=604800
TOKEN_ISSUER=api.dev.xyz.com
TOKEN_AUDIENCE=xyz.com
# Caching
CONTENT_CACHE_DURATION_MILLIS=5000
# Docker build
COMPOSE_BAKE=true