-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (50 loc) · 1.58 KB
/
.env.example
File metadata and controls
59 lines (50 loc) · 1.58 KB
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
# ---- Server ----
# export $(grep -v '^#' .env | xargs)
SERVER_PORT=8080
SERVER_READ_TIMEOUT=10s
SERVER_WRITE_TIMEOUT=10s
# ---- Postgres ----
POSTGRES_DSN=postgres://mt4signal:changeme@postgres:5432/mt4signal?sslmode=disable
POSTGRES_MAX_OPEN_CONNS=25
POSTGRES_MAX_IDLE_CONNS=10
# ---- Redis ----
REDIS_CRITICAL_ADDR=redis_critical:6379
REDIS_CACHE_ADDR=redis_cache:6380
REDIS_PASSWORD=changeme
# ---- Signal HMAC ----
# This secret must match what you put in the MT4 monitor EA (HMACSecret input).
# Generate a strong random value: openssl rand -hex 32
SIGNAL_HMAC_SECRET=replace_with_strong_random_secret_min_32_chars
SIGNAL_TIMESTAMP_TTL=30s
# ---- Auth ----
AUTH_KEY_CACHE_TTL=5m
AUTH_RATE_LIMIT_WINDOW=15m
AUTH_RATE_LIMIT_MAX_FAIL=10
AUTH_DEDUP_TTL=60s
# ---- JWT Admin ----
# Generate: openssl rand -hex 32
JWT_SECRET=replace_with_strong_jwt_secret_min_32_chars
JWT_ACCESS_TTL=15m
JWT_REFRESH_TTL=168h
# Admin credentials
ADMIN_USERNAME=admin
# Generate bcrypt hash: htpasswd -bnBC 12 "" yourpassword | tr -d ':\n' | sed 's/$2y/$2a/'
# Or use: go run -mod=mod golang.org/x/crypto/bcrypt (see README)
ADMIN_PASSWORD_HASH=$2a$12$replacethiswithrealbcrypthashofyourpassword
# ---- Worker ----
WORKER_CONCURRENCY=10
WORKER_MAX_RETRIES=5
WORKER_BASE_BACKOFF=1s
WORKER_MAX_BACKOFF=5m
WORKER_STALE_JOB_THRESHOLD=60s
WORKER_CLEANUP_INTERVAL=30s
# ---- Notifications ----
# Telegram
TELEGRAM_BOT_TOKEN=
TELEGRAM_BASE_URL=https://api.telegram.org
# WhatsApp (choose provider: twilio or callmebot)
WHATSAPP_PROVIDER=twilio
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_FROM_NUMBER=+1234567890
CALLMEBOT_API_KEY=