-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathenv.example
More file actions
46 lines (35 loc) · 1.67 KB
/
env.example
File metadata and controls
46 lines (35 loc) · 1.67 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
# Database Configuration
# PostgreSQL connection URL for syncing transactions.
# Format: postgres://user:password@host:port/database?sslmode=disable
DB_URL=postgres://user:password@localhost:5432/blnk?sslmode=disable
# Watermark Sync Configuration
# Default initial transaction sync window if no watermark has been established yet.
# Accepts Go duration syntax, for example: 48h, 24h, 7d is not valid so use 168h.
SYNC_TRANSACTION_LOOKBACK=48h
# Optional absolute override for the initial transaction sync start time.
# If set, this takes precedence over SYNC_TRANSACTION_LOOKBACK.
# Accepted formats: RFC3339, "2006-01-02 15:04:05", or "2006-01-02"
# SYNC_TRANSACTION_START_TIME=2026-03-11T00:00:00Z
# Watch Script Configuration
# Directory where watch scripts are stored (default: "watch_scripts")
WATCH_SCRIPT_DIR=watch_scripts
# Git Repository Configuration (optional)
# Git repository URL for watch scripts
WATCH_SCRIPT_GIT_REPO=
# Git branch to use for watch scripts (default: "main")
WATCH_SCRIPT_GIT_BRANCH=main
# Alert Webhook Configuration
# Primary webhook URL for sending risk alerts
ALERT_WEBHOOK_URL=
# Secondary webhook URL (optional, used as fallback)
ALERT_WEBHOOK_SECONDARY_URL=
# Backup webhook URL (optional, used as fallback)
ALERT_WEBHOOK_BACKUP_URL=
# API key for webhook authentication (optional, sent as Bearer token in Authorization header)
ALERT_WEBHOOK_API_KEY=
# Risk threshold for alerting (default: 0.5)
# Transactions with risk score >= this threshold will trigger alerts
ALERT_WEBHOOK_RISK_THRESHOLD=0.5
# Enable/disable webhook alerting (set to "false" to disable)
# Default: enabled (if not set or set to any value other than "false")
ALERT_WEBHOOK_ENABLED=true