-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
44 lines (35 loc) · 1.36 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
40
41
42
43
44
# 'production', 'development', 'test'
NODE_ENV= development
PORT_HTTP=3000
PORT_HTTPS=8443
# 'http', 'https', 'both'
WHICH_SERVER=https
# The URL ends with slash, QUERY_OPTIONS starts with question mark
MONGODB_URL=mongodb://127.0.0.1:27017/ # Option-1 Local MongoDb
MONGODB_URL=mongodb+srv://<user>:<password>@<cluster-url>/ # Option-2 Remote MongoDb
MONGODB_DBNAME=database_name
MONGODB_URL_QUERY_OPTIONS=?retryWrites=true&writeConcern=majority
REDIS_URL=redis://user:[email protected]:6380
RAISE_ERROR_WHEN_REDIS_DOWN=false
JWT_SECRET=thisisasamplesecret
JWT_ACCESS_EXPIRATION_MINUTES=20
JWT_REFRESH_EXPIRATION_DAYS=30
JWT_RESET_PASSWORD_EXPIRATION_MINUTES=60
JWT_VERIFY_EMAIL_EXPIRATION_MINUTES=3600
JWT_VERIFY_SIGNUP_EXPIRATION_MINUTES=60
JWT_REFRESH_IS_INVALID_NBT=true
GOOGLE_OAUTH_CLIENTID=GOOGLE_OAUTH_CLIENTID.apps.googleusercontent.com
GOOGLE_OAUTH_CLIENTSECRET=clien-secret-from-google
# SMTP configuration options
SMTP_HOST=smtp.email-server
SMTP_PORT=587
SMTP_USERNAME=email-server-username
SMTP_PASSWORD=email-server-password
RESET_PASSWORD_URL=https://your-frontend-app/reset-password
VERIFY_EMAIL_URL=https://your-frontend-app/verify-email
VERIFY_SIGNUP_URL=https://your-frontend-app/verify-signup
# mailchimp api
MAILCHIMP_SERVER_PREFIX=YOUR_SERVER_PREFIX
MAILCHIMP_APIKEY=YOUR_API_KEY
MAILCHIMP_AUDIENCE_ID=YOUR_AUDIENCE_ID