-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.template
103 lines (84 loc) · 3.29 KB
/
.env.template
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Please note there are many pre-defined (standard) values. These are
# The ones recommended for development. Please consider using
# Non-standard values. If you even want to use different ones for
# Development purposes, it also works well, just make sure to properly
# Set up the new values.
# Default to mongo in the docker-compose.yml file, change this value here if needed
DB_TEST_SERVER=mongo
# Default to redis in the docker-compose.yml file, change this value here if needed
REDIS_SERVER=redis
# The next two variables have default values if they are not set here, uncomment them
# If needed
#REDIS_USER=
#REDIS_PASSWORD=
# Required
DB_ADMIN_USER=
DB_ADMIN_PASSWORD=
# Required
DB_TEST_USER=
DB_TEST_PASSWORD=
# Required
DB_TEST_PORT=27017
DB_TEST_NAME=
# Required
# Db connection parameters
# DB_PREFIX: Default to 'mongodb' for docker-compose or single mongo server,
# change it if needed to 'mongodb+srv' if a seed list connection (Replica sets) is needed
# Remember, if you use a 'mongodb+srv' as the db prefix, the db port will be ignored
# As replica sets do not support ports
DB_PREFIX=mongodb
DB_USER=
DB_PASSWORD=
# DB_SERVER: Default to 'mongo' for docker-compose, change it if needed
DB_SERVER=mongo
# WHILE USING DOCKER, THIS IS A REQUIRED PARAMETER
DB_PORT=27017
DB_NAME=
DB_CONNECTION_OPTIONS=
# From the previous options, the db connection string will look like the following:
# [DB_PREFIX]://[DB_USER]:[DB_PASSWORD]@[DB_SERVER]:[DB_PORT]/[DB_NAME][DB_CONNECTION_OPTIONS]
# An example:
# mongodb://userDb:[email protected]:27017/goodDbName?option1=value1&option2=value2
# This is the exposed port of the mongo instance
ME_CONFIG_MONGODB_PORT=27018
# It has default value of "development" if not set here
NODE_ENV=
# A 10 could be a goog number here. Keep in mind you can use more at your own expense
# This has a default value if not set here.
SALT_DEFAULT_WORK_FACTOR=10
# This has a default value if not set here. Please be mindful of changing this value
# IMPORTANT: When going to production as this should be a value ONLY known to the server machin
# That runs this code
SECRET=
# Node server port
# This has a default value if not set here.
PORT=3000
DEBUG_NODE_SERVER=0.0.0.0
DEBUG_NODE_PORT=9229
# This has a default value in the app if not set here
# IMPORTANT TO CHANGE IF YOU WILL GO TO PRODUCTION
# OR USE A DIFFERENT FRONTEND SERVER ADDRESS DIFFERENT
# THAN http://localhost:3000
FRONTEND_SERVER_ADDRESS=http://localhost:3000
# IMPORTANT: This address should NOT have http:// as this
# part will be added within the configuration
# This is for the nginx redirection, remember to change it
# When going to production as this value is used for defining
# The redirections in nginx
BACKEND_SERVER_ADDRESS=127.0.0.1
# Has a default time of 2h if not set
EXPIRATION_TIME_FOR_WEB_TOKEN=
# This is the default value we use in the
# config.js file, make sure this value matches that one
# in the config.js file.
REDIS_PORT=6379
# Required. You can change this at your own expense if needed
# These are persistent the docker volume directories to store
# The data of these two servers. This ./data directory is ignored in
# The .gitignore file
MONGO_DATA_DIR=./data/mongo
REDIS_DATA_DIR=./data/redis
REDIS_TEST_PORT=6379
# Required only for dev environments
MONGO_EXPRESS_EXTERNAL_PORT=8082
REDIS_EXTERNAL_PORT=6378