-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (29 loc) · 1.1 KB
/
Copy path.env.example
File metadata and controls
40 lines (29 loc) · 1.1 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
DATABASE_URL="postgresql://postgres:<root password>@localhost:5433/<database name>"
# Access Token Configuration
# 15 minutes in milliseconds (1000 * 60 * 15)
ACCESS_TOKEN_EXPIRY=900000
ACCESS_TOKEN_SECRET=YourAccessTokenSecretHere
# Refresh Token Configuration
# 7 days in milliseconds (1000 * 60 * 60 * 24 * 7)
REFRESH_TOKEN_EXPIRY=604800000
REFRESH_TOKEN_SECRET=YourRefreshTokenSecretHere
# Reset Token Configuration
# 30 minutes in milliseconds (1000 * 60 * 30)
RESET_TOKEN_EXPIRY=1800000
RESET_TOKEN_SECRET=YourResetTokenSecretHere
# Email Verification Token Configuration
# 2 days in milliseconds (1000 * 60 * 60 * 24 * 2)
VERIFICATION_TOKEN_EXPIRY=172800000
VERIFICATION_TOKEN_SECRET=YourVerificationTokenSecretHere
# nodemailer credentials
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USER=uzairmanandev@gmail.com
MAIL_PASS=zkza etrl bxbs rnhd
# Redis environmenr variables
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# general variables
# redis url (only needed in production when you dont have a docker container)
REDIS_URL="rediss://default:<password>@abcd.upstash.io:6379"
FRONTEND_URL=http://localhost:3000