generated from Worketyamo-Students/node-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
63 lines (46 loc) · 1.76 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PORT=3000
DEFAULT_API_PREFIX=/api/v1
NODE_ENV=development
MONGO_INITDB_ROOT_USERNAME=*************
MONGO_INITDB_ROOT_PASSWORD=************
MONGO_DB_NAME=*************
ME_CONFIG_MONGODB_ADMINUSERNAME=admin
ME_CONFIG_MONGODB_ADMINPASSWORD=test123
ME_CONFIG_MONGODB_SERVER=worketyamo
ME_CONFIG_MONGODB_PORT=27017
# Connection string to connect to MongoDB
DATABASE_URL="mongodb+srv://**********************"
# Rate Limit value
MAX_GLOBAL_QUERY_NUMBER=100
MAX_GLOBAL_QUERY_WINDOW=60
MAX_UNIQ_QUERY_NUMBER=10
MAX_UNIQ_QUERY_WINDOW=30
# Employe token
JWT_ALGORITHM="RS256"
JWT_ACCESS_EXPIRES_IN="1h"
JWT_REFRESH_EXPIRES_IN="30d"
JWT_PRIVATE_KEY="./keys/public-access.key"
JWT_PUBLIC_KEY="./keys/public-access.key"
JWT_REFRESH_PRIVATE_KEY="./keys/private-refresh.key"
JWT_REFRESH_PUBLIC_KEY="./keys/public-refresh.key"
JWT_COOKIE_DURATION=2592000000000 # Pour 30 jours: 1000 * 60000 * 60 *24* 30
JWT_COOKIE_HTTP_STATUS=true
JWT_COOKIE_SECURITY=true
# configuration of mail sender
MAIL_HOST="smtp.gmail.com"
MAIL_ADDRESS="****************"
MAIL_PASSWORD="****************"
MAIL_PORT=465
MAIL_SECURITY=true
# S3 KEYS
AWS_ACCESS_KEY_ID=Barthez_KLB
AWS_SECRET_ACCESS_KEY=Barthez_Mimio_Password
AWS_REGION=us-east-1
AWS_BUCKET_NAME=barthez-uploads-images
MIMIO_URL=http://localhost:9000/
# lancer le serveur minio en local
#? docker run -p 9000:9000 -p 9001:9001 --name minio -e "MINIO_ROOT_USER=Barthez_KLB" -e "MINIO_ROOT_PASSWORD=Barthez_Mimio_Password" minio/minio server /data --console-address ":9001"
# Commande Pour Générer la clé privée
PRIVATE_KEY_GENERATE=openssl genpkey -algorithm RSA -out private.key -pkeyopt rsa_keygen_bits:2048
# Commande Pour Générer la clé publique à partir de la clé privée
PUBLIC_KEY_GENERATE=openssl rsa -pubout -in private.key -out public.key