-
Notifications
You must be signed in to change notification settings - Fork 4
/
.env.example
174 lines (128 loc) · 3.17 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# APP
DEBUG=false
NODE_ENV=development
PORT=5000
API_VERSION=1.0.0
DEFAULT_PASSWORD=123456789
DEFAULT_HASHED_PASSWORD=$2a$10$rwpL/BhU8xY4fkf8SG7fHugF4PCioTJqy8BLU7BZ8N0YV.8Y1dXem
# LOCALES
DEFAULT_LOCALE=en
LOCALES=en
# COUNTRY DATA
DEFAULT_COUNTRY_CODE=TZ
COUNTRY_CODES=TZ
# REQUEST LOGGER(MORGAN)
LOG_ENABLED=true
LOG_FORMAT=combined
# LOGGER
LOGGER_LOG_ENABLED=true
LOGGER_LOG_LEVEL=silly
LOGGER_USE_CONSOLE=true
LOGGER_USE_FILE=false
LOGGER_LOG_HTTP_FORMAT=combined
LOGGER_LOG_PATH=./logs/app-%DATE%.log
LOGGER_LOG_IGNORE=password,apiKey,secret,client_secret
# SERVE STATIC
SERVE_STATIC=true
SERVE_STATIC_PATH=public
# SERVER FAVICON
SERVE_FAVICON=false
# BODY PARSER
BODY_PARSER_LIMIT=2mb
BODY_PARSER_JSON_TYPE=application/json
# HELMET
HELMET_HSTS=false
# MQUERY
MQUERY_LIMIT=10
MQUERY_MAX_LIMIT=1000
# JWT
JWT_SECRET=978+4fsw6_1n63.hs~ns*ma?4!2#@!4
JWT_ALGORITHM=HS256
JWT_AUDIENCE=ewea
JWT_ISSUER=ewea
JWT_SUBJECT=ewea
JWT_EXPIRES_IN=7 days
JWT_API_TOKEN_EXPIRES_IN=1000y
## COUNTER
COUNTER_YEAR_FORMAT=YY
COUNTER_PREFIX=
COUNTER_PAD_SIZE=4
# QUEUE(deprecated)
QUEUE_NAME=mongoose
QUEUE_DEFAULT_JOB_TYPE=mongoose
QUEUE_TIMEOUT=5000
QUEUE_CONCURRENCY=10
QUEUE_ATTEMPTS=3
QUEUE_REMOVE_ON_COMPLETE=true
QUEUE_HTTP_PORT=9090
# KUE
KUE_NAME=mongoose
KUE_JOB_TYPES=mongoose
KUE_TIMEOUT=5000
KUE_CONCURRENCY=10
KUE_MAX_ATTEMPTS=3
KUE_PRIORITY=normal
KUE_JOB_EVENTS=false
KUE_REMOVE_ON_COMPLETE=true
KUE_HTTP_PORT=9090
KUE_HTTP_USERNAME=kue
KUE_HTTP_PASSWORD=kue
KUE_HTTP_ENABLED=true
# DATABASES
REDIS_URL=
MONGODB_URI=mongodb://localhost/ewea
MONGODB_CONNECTION_WAIT_TIME=100
# TRANSPORTS
DEFAULT_TRANSPORT_NAME=echo
DEFAULT_SMTP_TRANSPORT_NAME=smtp
DEFAULT_SMS_TRANSPORT_NAME=tz-ega-sms
DEFAULT_PUSH_TRANSPORT_NAME=fcm-push
DEFAULT_SMS_SENDER_ID=EWEA
DEFAULT_CAMPAIGN_CHANNELS=EMAIL
DEFAULT_ENABLE_SYNC_TRANSPORT=false
# TZ EGA SMS TRANSPORT
SMS_EGA_TZ_API_KEY=
SMS_EGA_TZ_API_USER=
SMS_EGA_TZ_API_URL=
SMS_EGA_TZ_DEFAULT_SENDER_ID=
SMS_EGA_TZ_DEFAULT_SERVICE_ID=
SMS_EGA_TZ_TEST_RECEIVER=
# INFOBIP SMS TRANSPORT
SMS_INFOBIP_DEFAULT_SENDER_ID=EWEA
SMS_INFOBIP_USERNAME=
SMS_INFOBIP_PASSWORD=
SMS_INFOBIP_TEST_RECEIVER=
# SMTP MAIL TRANSPORT
SMTP_HOST=smtp.gmail.com
SMTP_PORT=465
SMTP_PASSWORD=code@tanzania
SMTP_SECURE=true
SMTP_FROM_NAME=EWEA Notification
# SMTP_TLS_REJECTUNAUTHORIZED=true
# SMTP_TEST_RECEIVER=
# GOOGLE FCM(GCM) TRANSPORT
PUSH_FCM_API_KEY=AAAAHJXrkxo:APA91bGj_HVOABt_eB3ZV3BP2CT1UwIuUjGOF2CNV8Pbl-3sFwThsV_TpgnejW_jfRN66WN9GnA9k8Pvp7lUiiPu4YYAbsJxv3IZ1rO5xx6UpvGo2Wr0lFpZGQi55JGsBrP6Rlpmpn4e
PUSH_FCM_DEFAULT_SENDER_ID=122774328090
PUSH_FCM_TEST_REGISTRATION_TOKEN=
# SMSSYNC SMS TRANSPORT
SMSSYNC_ENDPOINT=smssync
SMSSYNC_SECRET=smssync
SMSSYNC_REPLY=true
SMSSYNC_ERROR=true
# GEO
GEO_MAX_LENGTH=0.0001
GEO_MAX_ROTATION=0.39269908169872414
GEO_BBOX=-180,-90,180,90
# SEED
# SEED_PATH=
SEED_FRESH=true
# ADMINISTRATOR
ADMINISTRATOR_NAME=Administrator
ADMINISTRATOR_ABBREVIATION=ADMN
ADMINISTRATOR_LOCALE=en
ADMINISTRATOR_MOBILE=0714001001
ADMINISTRATOR_ROLE=Administrator
ADMINISTRATOR_PASSWORD=$2a$10$rwpL/BhU8xY4fkf8SG7fHugF4PCioTJqy8BLU7BZ8N0YV.8Y1dXem