forked from forwardemail/forwardemail.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.defaults
418 lines (377 loc) · 9.5 KB
/
.env.defaults
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
#
# To obtain Apple ID hashed password you can run this command
# echo -n "yourpasswordhere" | sha256sum
#
APPLE_ID=
APPLE_ID_HASHED_PASSWORD=
###############
## dkim keys ##
###############
DKIM_DOMAIN_NAME={{WEB_HOST}}
DKIM_KEY_SELECTOR=default
DKIM_PRIVATE_KEY_PATH=
#
# instead of using DKIM_PRIVATE_KEY_PATH
# you can use DKIM_PRIVATE_KEY_VALUE which
# is the DKIM private key as a string with line breaks
# (this is useful for tests and GitHub CI)
# openssl genrsa -f4 -out private.key 2048
#
DKIM_PRIVATE_KEY_VALUE=
###############
## Microsoft ##
###############
MICROSOFT_BING_API_KEY=
############
## Twilio ##
############
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_FROM_NUMBER=
TWILIO_TO_NUMBER=
############
## PayPal ##
############
# PAYPAL_WEBHOOK_ID=
# PAYPAL_ENHANCED_PLAN_30D=
# PAYPAL_ENHANCED_PLAN_60D=
# PAYPAL_ENHANCED_PLAN_90D=
# PAYPAL_ENHANCED_PLAN_180D=
# PAYPAL_ENHANCED_PLAN_1Y=
# PAYPAL_TEAM_PLAN_30D=
# PAYPAL_TEAM_PLAN_60D=
# PAYPAL_TEAM_PLAN_90D=
# PAYPAL_TEAM_PLAN_180D=
# PAYPAL_TEAM_PLAN_1Y=
# PAYPAL_CLIENT_ID=
# PAYPAL_SECRET=
PAYPAL_DEBUG=""
############
## Stripe ##
############
# STRIPE_PUBLISHABLE_KEY=
# STRIPE_SECRET_KEY=
#################
## environment ##
#################
NODE_ENV=development
#################
### rate limit ##
#################
RATELIMIT_ALLOWLIST=
###########
## proxy ##
###########
PROXY_PORT=
##########
## http ##
##########
HTTP_PROTOCOL=http
HTTP_PORT=
#############################
## sqlite websocket server ##
#############################
SQLITE_STORAGE_PATH='storage_do_1'
SQLITE_TMPDIR=/tmp/{{NODE_ENV}}_{{SQLITE_STORAGE_PATH}}_tmp
SQLITE_HOST=localhost
SQLITE_PORT=3456
SQLITE_RCLONE_ENABLED=false
SQLITE_FTS5_ENABLED=false
################
## web server ##
################
WEB_HOST=localhost
WEB_PORT=3000
WEB_PROTOCOL={{HTTP_PROTOCOL}}
WEB_URL={{WEB_PROTOCOL}}://{{WEB_HOST}}:{{WEB_PORT}}
WEB_SSL_KEY_PATH=
WEB_SSL_CERT_PATH=
WEB_SSL_CA_PATH=
###################
## caldav server ##
###################
CALDAV_HOST=localhost
CALDAV_PORT=5000
CALDAV_PROTOCOL={{HTTP_PROTOCOL}}
CALDAV_URL={{CALDAV_PROTOCOL}}://{{CALDAV_HOST}}:{{CALDAV_PORT}}
CALDAV_SSL_KEY_PATH=
CALDAV_SSL_CERT_PATH=
CALDAV_SSL_CA_PATH=
################
## api server ##
################
API_HOST=localhost
API_PORT=4000
API_PROTOCOL={{HTTP_PROTOCOL}}
API_URL={{API_PROTOCOL}}://{{API_HOST}}:{{API_PORT}}
API_SSL_KEY_PATH=
API_SSL_CERT_PATH=
API_SSL_CA_PATH=
API_RATELIMIT_WHITELIST=138.197.213.185,104.248.224.170
#########
## app ##
#########
APP_NAME="Forward Email"
APP_COLOR=#20C1ED
TRANSPORT_DEBUG=true
SEND_EMAIL=false
PREVIEW_EMAIL=true
# openssl rand -base64 32 | tr -d /=+ | cut -c -32
# HELPER_ENCRYPTION_KEY=xxxxx
# SRS_SECRET=xxxxx
EMAIL_ABUSE="abuse@{{WEB_HOST}}"
EMAIL_FRIENDLY_FROM="no-reply@{{WEB_HOST}}"
EMAIL_DEFAULT_FROM_EMAIL="support@{{WEB_HOST}}"
EMAIL_DEFAULT_FROM="{{APP_NAME}} <{{EMAIL_DEFAULT_FROM_EMAIL}}>"
REMOVED_EMAIL_DOMAIN="removed.{{WEB_HOST}}"
AXE_SHOW_STACK=true
AXE_SILENT=false
AXE_SHOW_META=true
AXE_APP_INFO=true
AXE_OMIT_META_FIELDS=app.os,app.cluster,app.worker_threads,app.pid,app.version
SUPPORT_REQUEST_MAX_LENGTH=5000
# koa-better-error-handler
ERROR_HANDLER_BASE_URL={{{WEB_URL}}}
# @ladjs/i18n
I18N_SYNC_FILES=false
I18N_AUTO_RELOAD=false
I18N_UPDATE_FILES=false
# @ladjs/passport
AUTH_LOCAL_ENABLED=true
AUTH_APPLE_ENABLED=false
AUTH_GOOGLE_ENABLED=false
AUTH_GITHUB_ENABLED=false
AUTH_OTP_ENABLED=false
AUTH_WEBAUTHN_ENABLED=true
AUTH_UBUNTU_ENABLED=false
# ubuntu
UBUNTU_CALLBACK_URL={{{WEB_URL}}}/auth/ubuntu/ok
UBUNTU_REALM={{{WEB_URL}}}
# your sign-in with apple configuration
# https://github.com/nicokaiser/passport-apple#create-a-service
APPLE_CLIENT_ID=
APPLE_TEAM_ID=
APPLE_KEY_ID=
APPLE_KEY_PATH
APPLE_CALLBACK_URL={{{WEB_URL}}}/auth/apple/ok
# your google client ID and secret from:
# https://console.developers.google.com
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL={{{WEB_URL}}}/auth/google/ok
GOOGLE_APPLICATION_CREDENTIALS=
# your github client ID and secret from:
# https://github.com/settings/applications
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_CALLBACK_URL={{{WEB_URL}}}/auth/github/ok
GITHUB_OCTOKIT_TOKEN=
#############
## mongodb ##
#############
MONGO_USER=
MONGO_PASS=
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_NAME=forwardemail_{{NODE_ENV}}
MONGO_URI="mongodb://{{MONGO_HOST}}:{{MONGO_PORT}}/{{MONGO_NAME}}"
LOGS_MONGO_USER=
LOGS_MONGO_PASS=
LOGS_MONGO_HOST=localhost
LOGS_MONGO_PORT=27017
LOGS_MONGO_NAME=forwardemail_logs_{{NODE_ENV}}
LOGS_MONGO_URI="mongodb://{{LOGS_MONGO_HOST}}:{{LOGS_MONGO_PORT}}/{{LOGS_MONGO_NAME}}"
JOURNALS_MONGO_USER=
JOURNALS_MONGO_PASS=
JOURNALS_MONGO_HOST=localhost
JOURNALS_MONGO_PORT=27017
JOURNALS_MONGO_NAME=forwardemail_journals_{{NODE_ENV}}
JOURNALS_MONGO_URI="mongodb://{{JOURNALS_MONGO_HOST}}:{{JOURNALS_MONGO_PORT}}/{{JOURNALS_MONGO_NAME}}"
EMAILS_MONGO_USER=
EMAILS_MONGO_PASS=
EMAILS_MONGO_HOST=localhost
EMAILS_MONGO_PORT=27017
EMAILS_MONGO_NAME=forwardemail_emails_{{NODE_ENV}}
EMAILS_MONGO_URI="mongodb://{{EMAILS_MONGO_HOST}}:{{EMAILS_MONGO_PORT}}/{{EMAILS_MONGO_NAME}}"
###########
## redis ##
###########
REDIS_TLS=false
REDIS_USERNAME=
REDIS_PORT=6379
REDIS_HOST=localhost
REDIS_PASSWORD=
WEB_REDIS_TLS={{REDIS_TLS}}
WEB_REDIS_USERNAME={{REDIS_USERNAME}}
WEB_REDIS_PORT={{REDIS_PORT}}
WEB_REDIS_HOST={{REDIS_HOST}}
WEB_REDIS_PASSWORD={{REDIS_PASSWORD}}
WEB_REDIS_MAX_RETRY_LOADING_TIME=1000
API_REDIS_TLS={{REDIS_TLS}}
API_REDIS_USERNAME={{REDIS_USERNAME}}
API_REDIS_PORT={{REDIS_PORT}}
API_REDIS_HOST={{REDIS_HOST}}
API_REDIS_PASSWORD={{REDIS_PASSWORD}}
BREE_REDIS_TLS={{REDIS_TLS}}
BREE_REDIS_USERNAME={{REDIS_USERNAME}}
BREE_REDIS_PORT={{REDIS_PORT}}
BREE_REDIS_HOST={{REDIS_HOST}}
BREE_REDIS_PASSWORD={{REDIS_PASSWORD}}
MANDARIN_REDIS_TLS={{REDIS_TLS}}
MANDARIN_REDIS_USERNAME={{REDIS_USERNAME}}
MANDARIN_REDIS_PORT={{REDIS_PORT}}
MANDARIN_REDIS_HOST={{REDIS_HOST}}
MANDARIN_REDIS_PASSWORD={{REDIS_PASSWORD}}
IMAP_REDIS_TLS={{REDIS_TLS}}
IMAP_REDIS_USERNAME={{REDIS_USERNAME}}
IMAP_REDIS_PORT={{REDIS_PORT}}
IMAP_REDIS_HOST={{REDIS_HOST}}
IMAP_REDIS_PASSWORD={{REDIS_PASSWORD}}
POP3_REDIS_TLS={{REDIS_TLS}}
POP3_REDIS_USERNAME={{REDIS_USERNAME}}
POP3_REDIS_PORT={{REDIS_PORT}}
POP3_REDIS_HOST={{REDIS_HOST}}
POP3_REDIS_PASSWORD={{REDIS_PASSWORD}}
CALDAV_REDIS_TLS={{REDIS_TLS}}
CALDAV_REDIS_USERNAME={{REDIS_USERNAME}}
CALDAV_REDIS_PORT={{REDIS_PORT}}
CALDAV_REDIS_HOST={{REDIS_HOST}}
CALDAV_REDIS_PASSWORD={{REDIS_PASSWORD}}
#############
## certbot ##
#############
CERTBOT_WELL_KNOWN_NAME=
CERTBOT_WELL_KNOWN_CONTENTS=
######################
## verification pin ##
######################
VERIFICATION_PIN_TIMEOUT_MS=1d
VERIFICATION_PIN_EMAIL_INTERVAL_MS=5m
#################
## reset token ##
#################
RESET_TOKEN_TIMEOUT_MS=30m
########################
## change email token ##
########################
CHANGE_EMAIL_TOKEN_TIMEOUT_MS=30m
CHANGE_EMAIL_LIMIT_MS=30m
###########################
## global vanity domains ##
###########################
VANITY_DOMAINS=mailsire.com,hideaddress.net,secret.fyi,hash.fyi
###################
## record prefix ##
###################
TXT_RECORD_PREFIX=forward-email
#############################
## max forwarded addresses ##
#############################
MAX_FORWARDED_ADDRESSES=10
#################
## api secrets ##
#################
API_SECRETS=secret,
#####################
## cache responses ##
#####################
CACHE_RESPONSES=
##########################
## cloudflare turnstile ##
##########################
# https://developers.cloudflare.com/turnstile/frequently-asked-questions/#are-there-sitekeys-and-secret-keys-that-can-be-used-for-testing
TURNSTILE_ENABLED=true
TURNSTILE_SECRET_KEY=`1x0000000000000000000000000000000AA`
TURNSTILE_SITE_KEY=`1x00000000000000000000AA`
###########################
## helper encryption key ##
###########################
HELPER_ENCRYPTION_KEY=
HELPER_ENCRYPTION_KEY_LEGACY=
###########################
## TXT encryption key ##
###########################
# generate with `crypto.randomBytes(16).toString('hex')`
TXT_ENCRYPTION_KEY=
###########################
## api restricted symbol ##
###########################
API_RESTRICTED_SYMBOL=API_RESTRICTED_SYMBOL
########
## mx ##
########
MX_PORT=2525
##########################
## smtp mirrored config ##
##########################
SMTP_ALLOW_INSECURE_AUTH=false
SMTP_TRANSPORT_USER="{{EMAIL_DEFAULT_FROM_EMAIL}}"
SMTP_TRANSPORT_PASS=""
SMTP_TRANSPORT_HOST={{SMTP_HOST}}
SMTP_TRANSPORT_PORT=465
SMTP_TRANSPORT_SECURE=true
SMTP_HOST=localhost
SMTP_PORT=2587
SMTP_MESSAGE_MAX_SIZE=50mb
ALLOWLIST=
DENYLIST=
TRUTH_SOURCES=
MAX_RECIPIENTS=50
##########
## bree ##
##########
BREE_HOST=localhost
##########
## imap ##
##########
IMAP_HOST=localhost
IMAP_PORT=2993
##########
## pop3 ##
##########
POP3_HOST=localhost
POP3_PORT=2995
#####################
## email retention ##
#####################
EMAIL_RETENTION="30d"
###################
## log retention ##
###################
LOG_RETENTION="7d"
#########
## aws ##
#########
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION="auto"
AWS_ENDPOINT_URL=
#########
## TTI ##
#########
TTI_APPLE_IMAP_USER=
TTI_APPLE_IMAP_PASS=
TTI_APPLE_FORWARDER=
TTI_GMAIL_IMAP_USER=
TTI_GMAIL_IMAP_PASS=
TTI_GMAIL_FORWARDER=
TTI_OUTLOOK_IMAP_USER=
TTI_OUTLOOK_IMAP_PASS=
TTI_OUTLOOK_FORWARDER=
TTI_FASTMAIL_IMAP_USER=
TTI_FASTMAIL_IMAP_PASS=
TTI_FASTMAIL_FORWARDER=
TTI_YAHOO_IMAP_USER=
TTI_YAHOO_IMAP_PASS=
TTI_YAHOO_FORWARDER=
######################
## GPG SECURITY KEY ##
######################
GPG_SECURITY_KEY=
GPG_SECURITY_PASSPHRASE=
################
## MX SERVERS ##
################
MX1_HOST=mx1.forwardemail.net
MX2_HOST=mx2.forwardemail.net
SMTP_EXCHANGE_DOMAINS={{MX1_HOST}},{{MX2_HOST}}