-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
39 lines (35 loc) · 1.13 KB
/
.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
PORT= 4000
HOST='https://my-twitter-clone.com'
DB_NAME="twitter-dev"
DB_USERNAME = ""
DB_PASSWORD = ""
DB_USERS_COLLECTION ="users"
DB_REFRESH_TOKENS_COLLECTION ="refresh_tokens"
DB_FOLLOWERS_COLLECTION= "followers"
DB_VIDEO_STATUS_COLLECTION="video_status"
DB_TWEETS_COLLECTION="tweets"
DB_HASHTAGS_COLLECTION="hashtags"
DB_BOOKMARKS_COLLECTION="bookmarks"
DB_LIKES_COLLECTION="likes"
DB_CONVERSATIONS_COLLECTION="conversations"
DB_NOTIFICATIONS_COLLECTION="notifications"
PASSWORD_SECRET= ''
JWT_SECRET_ACCESS_TOKEN = ''
JWT_SECRET_REFRESH_TOKEN = ''
JWT_SECRET_EMAIL_VERIFY_TOKEN = '*'
JWT_SECRET_FORGOT_PASSWORD_TOKEN = '*'
# Nếu expireIn là số thì nó sẽ tính theo giây
# Nếu expireIn là string thì phải quy định thêm các ký tự như : 'm','h', 'd', 'w'
# string mà không quy định thì nó sẽ tính theo milisecond
REFRESH_TOKEN_EXPIRES_IN= "100d"
ACCESS_TOKEN_EXPIRES_IN= "15m"
EMAIL_VERIFY_TOKEN_EXPIRES_IN= "7d"
FORGOT_PASSWORD_TOKEN_EXPIRES_IN="7d"
GOOGLE_CLIENT_ID= ""
GOOGLE_CLIENT_SECRET = ""
GOOGLE_REDIRECT_URI =""
CLIENT_REDIRECT_CALLBACK = ""
#Cloudary API Upload Image
CLOUD_NAME= ""
API_KEY = ""
API_SECRET= ""