-
Notifications
You must be signed in to change notification settings - Fork 1
/
the_env_file.txt
62 lines (52 loc) · 1.66 KB
/
the_env_file.txt
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
59
60
61
62
# APPLICATION
NODE_ENV=development
#UV_THREADPOOL_SIZE=6
API_VERSION=v1
PREFIX=api
# 3hours in milisec. this should be the same with OVERNIGHT_JWT_EXP
TOKEN_EXP=10800000
# BCRYPT
SALT_ROUNDS=11
# TYPEORM MODIFY AND USE THIS IN PRODUCTION
TYPEORM_CONNECTION=mysql
# docker service database name
TYPEORM_HOST=db
# not needed if run on docker
# although if you run npx typeorm to generat migration and or model you need to uncomment this and comment TYPEORM_HOST=db
# this is because of docker that I dont know for now
# TYPEORM_HOST=localhost
# not needed if run on docker
TYPEORM_PORT=3306
TYPEORM_LOGGING=true
#TYPEORM_LOGGER=file #use only for production
TYPEORM_USERNAME=root
TYPEORM_PASSWORD=password
TYPEORM_DATABASE=development_db
TYPEORM_ENTITIES=src/models/**/*.ts
TYPEORM_MIGRATIONS=db/migrations/**/*.ts
TYPEORM_SUBSCRIBERS=src/subscriberTYPEORM_LOGGERs/**/*.ts
# This code will log all queries which run more than 2 second.
TYPEORM_MAX_QUERY_EXECUTION_TIME=2000
# typeorm used for crating migrations, entities and subscription
TYPEORM_ENTITIES_DIR=src/models
TYPEORM_MIGRATIONS_DIR=db/migrations
TYPEORM_SUBSCRIBERS_DIR=src/subscribers
TYPEORM_CACHE=true
# 5secs cache
TYPEORM_CACHE_DURATION=5000
# MYSQL
MYSQL_PASSWORD=password
MYSQL_ROOT_PASSWORD=password
MYSQL_DATABASE=development_db
# Overnight js JWT package
OVERNIGHT_JWT_SECRET='dis iss sikrit misig'
OVERNIGHT_JWT_EXP='3h'
# Facebook Authentication
FACEBOOK_CLIENT_ID='CREATE YOUR OWN FACEBOOK DEV ACCOUNT'
FACEBOOK_CLIENT_SECRET='CREATE YOUR OWN FACEBOOK DEV ACCOUNT'
# FRONTEND URL
FRONTEND_BASE_URL='http://localhost:3000'
# BACKEND URl
BACKEND_BASE_URL='http://localhost:8000/api/v1'
# COOKIE NAMES
GGPO_COOKIE='_ggpo'