-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
57 lines (49 loc) · 1.56 KB
/
.env
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
# node
NODE_ENV="production"
# redis service
REDIS_HOST="redis"
REDIS_PORT=6379
REDIS_PASSWORD="changeme"
# elastic
ELASTIC_HOST="host.docker.internal"
ELASTIC_REQUIRED_STATUS="green"
ELASTIC_MAX_TRIES="10"
ELASTIC_URL="${ELASTIC_SCHEME:-https}://${ELASTIC_HOST}:${ELASTIC_PORT:-9200}"
# db service
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="changeme"
POSTGRES_HOST="db"
POSTGRES_PORT=5432
POSTGRES_DB="report"
DATABASE_URL="${DATABASE_PROTOCOL:-postgresql}://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=default"
# smtp
SMTP_HOST="maildev"
SMTP_PORT=1025
SMTP_SECURE="false"
SMTP_IGNORE_TLS="true"
SMTP_REJECT_UNAUTHORIZED="false"
# mail service
EMAIL_SENDER="[email protected]"
EMAIL_SUPPORT_TEAM="[email protected]"
EMAIL_DEV_TEAM="[email protected]"
EMAIL_ATTEMPTS=5
EMAIL_ATTEMPTS_INTERVAL=2000
EMAIL_MEM_LIMIT=3 # in Go. Should be at least `0.3 + (WORKERS_CONCURRENCE * 0.3)`
# workers
WORKERS_CONCURRENCE=5
WORKERS_MAX_EXEC_TIME=10000
# report service
REPORT_ADMIN_KEY=""
REPORT_CRON_TZ="" # Timezone wanted for the cron execution
REPORT_CRON_TIMER_GENERATE_REPORT="0 12 * * *"
REPORT_CRON_TIMER_PURGE_OLD_REPORT="0 12 * * *"
REPORT_ITERATIONS_TO_LIVE=2
REPORT_DAYS_TO_LIVE=7
REPORT_MEM_LIMIT=7 # in Go. Should be at least `0.5 + (2 * WORKERS_CONCURRENCE * 0.5) + (count of crons * 0.5)`
# RegEx rules format: ["myDomain\.fr"]
REPORT_FETCHER_BANNED_DOMAINS="[]"
# common to all services
API_URL="http://localhost:8080"
API_ALLOWED_ORIGINS="*" # Comma separated origins (or * to allow all)
LOG_LEVEL="info"
HTTP_PORT=8080