-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
138 lines (104 loc) · 4.68 KB
/
Copy pathexample.env
File metadata and controls
138 lines (104 loc) · 4.68 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
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
# BrokerAI example environment file
#
# Copy to .env for local development:
# cp example.env .env
#
# Generate a session secret:
# openssl rand -hex 16
#
# Load in your shell (optional — scripts/dev.sh and the CLI load .env automatically):
# set -a && source .env && set +a
#
# Production installs use /etc/brokerai/config.env instead of .env.
# -----------------------------------------------------------------------------
# Core
# -----------------------------------------------------------------------------
# Required. Session signing secret — never commit a real value.
BROKERAI_SECRET_KEY=change-me
# Web UI / API port
BROKERAI_WEB_PORT=1989
# Logging: DEBUG, INFO, WARNING, ERROR
BROKERAI_LOG_LEVEL=INFO
# Runtime state (auth, version lock, heartbeat). Container default: /var/lib/brokerai/data
BROKERAI_DATA_DIR=data
# Application logs. Container default: /var/log/brokerai
BROKERAI_LOG_DIR=logs
# -----------------------------------------------------------------------------
# Postgres / Supabase
# -----------------------------------------------------------------------------
# scripts/setup-supabase.sh --start appends these when missing.
BROKERAI_DATABASE_URL=postgresql+asyncpg://postgres:postgres@127.0.0.1:5432/postgres
BROKERAI_SUPABASE_URL=http://127.0.0.1:8000
# BROKERAI_SUPABASE_ANON_KEY=
# BROKERAI_SUPABASE_SERVICE_ROLE_KEY=
# BROKERAI_SUPABASE_JWT_SECRET=
BROKERAI_USE_POSTGRES=true
# -----------------------------------------------------------------------------
# Bots & pipeline
# -----------------------------------------------------------------------------
# Secretary mode (default): secretary + broker + researcher
BROKERAI_ENABLED_BOTS=secretary,broker,researcher
# Max parallel symbol pipelines
# BROKERAI_PIPELINE_CONCURRENCY=10
# Secretary tick interval (seconds)
# BROKERAI_SECRETARY_TICK_INTERVAL_SECONDS=5
# Broker slow tick — exit monitor housekeeping (seconds)
# BROKERAI_BROKER_SYNC_INTERVAL_SECONDS=30
# In-pipeline candle cache TTL (seconds)
# BROKERAI_PIPELINE_CANDLE_CACHE_TTL_SECONDS=60
# Analysis worker concurrency
# BROKERAI_ANALYSIS_CONCURRENCY=10
# -----------------------------------------------------------------------------
# OANDA / broker sync
# -----------------------------------------------------------------------------
# Web API background trade sync loop (seconds; minimum 60)
# BROKERAI_TRADE_SYNC_INTERVAL_SECONDS=300
# OANDA account list + summary sync to Postgres (seconds; minimum 60)
BROKERAI_OANDA_ACCOUNT_SYNC_INTERVAL_SECONDS=60
# OANDA exposure health check + stale cursor repair (seconds)
# BROKERAI_OANDA_EXPOSURE_CHECK_INTERVAL_SECONDS=3600
# BROKERAI_OANDA_CURSOR_STALE_THRESHOLD_SECONDS=3600
# Broker event persistence (Phase 3)
# BROKERAI_BROKER_EVENTS_BULK_BATCH_SIZE=500
# BROKERAI_BROKER_EVENTS_RETENTION_ENABLED=true
# BROKERAI_BROKER_EVENTS_LOW_VALUE_RETENTION_DAYS=90
# Parallel OANDA candle fetches during sync
# BROKERAI_OANDA_FETCH_CONCURRENCY=8
# -----------------------------------------------------------------------------
# Candle data
# -----------------------------------------------------------------------------
# Default timeframes for candle sync (comma-separated)
# BROKERAI_CANDLE_DEFAULT_TIMEFRAMES=M15
# Chunk size and concurrency for candle backfill
# BROKERAI_CANDLE_SYNC_CHUNK_SIZE=5000
# BROKERAI_CANDLE_SYNC_CONCURRENCY=4
# -----------------------------------------------------------------------------
# Research
# -----------------------------------------------------------------------------
# BROKERAI_RESEARCH_SEARCH_CONCURRENCY=6
# BROKERAI_RESEARCH_ANALYSIS_CONCURRENCY=4
# Require AI confirmation before acting on research output
# BROKERAI_AI_CONFIRMATION_ENABLED=false
# -----------------------------------------------------------------------------
# Auth / sessions
# -----------------------------------------------------------------------------
# BROKERAI_SESSION_COOKIE_NAME=brokerai_session
# BROKERAI_SESSION_MAX_AGE=604800
# BROKERAI_AUTH_MODE=oidc
# BROKERAI_OIDC_ISSUER=https://auth.example.com
# BROKERAI_OIDC_CLIENT_ID=brokerai
# BROKERAI_OIDC_CLIENT_SECRET=your-dev-secret
# -----------------------------------------------------------------------------
# Auto-update
# -----------------------------------------------------------------------------
# Disable on local dev; enable on production LXC installs
BROKERAI_AUTO_UPDATE=false
BROKERAI_REPO=https://github.com/anomaddev/BrokerAI
# Update track (Swift Package Manager-style):
# branch — latest commit on BROKERAI_BRANCH
# release — pinned to BROKERAI_RELEASE tag
# latest-release — newest GitHub release
# next-major — newest release within the installed major version
BROKERAI_UPDATE_TRACK=branch
BROKERAI_BRANCH=main
BROKERAI_RELEASE=