generated from web-tech-tw/template.recv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.sample
53 lines (43 loc) · 1.68 KB
/
.env.sample
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
# node env ('production' or 'development')
NODE_ENV="development"
# general
TRUST_PROXY="loopback" # empty to disable, ('loopback', 'linklocal', 'uniquelocal' or ip addresses)
ENABLED_PROTOCOLS="http,https" # ('http', 'https')
ENABLED_REDIRECT_HTTP_HTTPS="no" # redirect http to https ('yes' or 'no')
INDEX_REDIRECT_TYPE="permanent" # ('temporary' or 'permanent')
INDEX_REDIRECT_URL="https://example.org"
# http
HTTP_PORT="3000"
HTTP_HOSTNAME="127.0.0.1"
# https
HTTPS_PORT="3500"
HTTPS_HOSTNAME="127.0.0.1"
HTTPS_KEY_PATH="/some/where.key"
HTTPS_CERT_PATH="/some/where.crt"
# database
MONGODB_URI="mongodb://mongo:27017/app"
# cors
ENABLED_CORS="no" # cors ('yes' or 'no'), CORS_ORIGIN is required
ENABLED_CORS_ORIGIN_CHECK="no" # is the API public to every client ('yes' or 'no')
CORS_ORIGIN="https://example.org"
# api docs server
ENABLED_SWAGGER="yes" # swagger ('yes' or 'no')
SWAGGER_SERVER_DESCRIPTION="default"
SWAGGER_CORS_ORIGIN="http://127.0.0.1:3000"
SWAGGER_SERVER_URL="http://127.0.0.1:3000"
# mail sender
MAIL_SMTP_HOST="smtp.example.org"
MAIL_SMTP_PORT="25"
MAIL_SMTP_SECURE="no"
MAIL_SMTP_USERNAME="empty_to_disable_auth"
MAIL_SMTP_PASSWORD="your_smtp_password"
MAIL_SMTP_FROM='"freya.recv" <[email protected]>'
# sara config
SARA_RECV_HOST="http://127.0.0.1:3000" # replace the field with your sara.recv entrypoint
SARA_AUDIENCE_URL="https://example.org"
# turnstile config
TURNSTILE_SECRET_KEY="1x0000000000000000000000000000000AA"
# freya config
FREYA_INTE_HOST="http://localhost:5173"
FREYA_PAIRING_SECRET="your_pairing_secret"
FREYA_CHEERIO_USER_AGENT="Mozilla/5.0 (Linux; Android 4.4.2; Desire HD Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36"