generated from valtervalik/Nestjs-TypeORM-Auth-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
39 lines (32 loc) · 967 Bytes
/
.env.example
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
#APP
NODE_ENV=development
APP_PORT=3000
APP_NAME=nestjs-template
#JWT
JWT_SECRET=your_secret_here
JWT_REFRESH_TOKEN_SECRET=your_refresh_token_secret_here
JWT_TOKEN_AUDIENCE=localhost:3000
JWT_TOKEN_ISSUER=localhost:3000
JWT_ACCESS_TOKEN_TTL=3600 #expiration time in seconds
JWT_REFRESH_TOKEN_TTL=86400 #expiration time in seconds
#Google
GOOGLE_CLIENT_ID= #google client id
GOOGLE_CLIENT_SECRET= #google client secret
#DB
DATABASE_PORT=27017
DATABASE_USERNAME=root
DATABASE_PASSWORD=secret
DATABASE_NAME=api
DATABASE_URL=mongodb://mongo:27017
#Redis
REDIS_HOST=localhost #default host
REDIS_PORT=6379 #default port
REDIS_PASSWORD=secret #default password
#Crypto RSA keys
PRIVATE_KEY_PATH=keys/private-key.key #path to private key
PUBLIC_KEY_PATH=keys/public-key.crt #path to public key
#Mailer
[email protected] #email
EMAIL_PASSKEY=your_passkey_here #email passkey
EMAIL_USERNAME=Nestjs-Template #email username
EMAIL_SERVICE=gmail #example: gmail