-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
130 lines (79 loc) · 3.48 KB
/
example.env
File metadata and controls
130 lines (79 loc) · 3.48 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
# Chromium Browser Configuration
# Copy this file to .env and adjust values as needed
# ============================================================================
# REQUIRED SETTINGS
# ============================================================================
# CDP (Chrome DevTools Protocol) listening address
# Use 127.0.0.1 for localhost only (recommended for security)
CHROMIUM_CDP_ADDRESS=127.0.0.1
# CDP listening port
# Choose any available port (9222 is Chrome default, 9226 avoids conflicts)
CHROMIUM_CDP_PORT=9220
# Initial URL to open when browser starts
# Options: about:blank, https://example.com, etc.
CHROMIUM_START_URL=https://www.tradingview.com/
# ============================================================================
# OPTIONAL SETTINGS (will use defaults if not specified)
# ============================================================================
# Profile directory for browser data
# Default: ./chromium-profile
# This keeps test browsing isolated from your personal browser data
CHROMIUM_PROFILE_DIR=./chromium-profile
# Directory for Chromium debug log files
# Default: logs
# Used when running with --with-logs flag
CHROMIUM_LOG_FILE_DIR=logs
# Enable Chromium crash reporter flags.
# Default: false (recommended on sandboxed Linux; avoids Crashpad SIGTRAP crashes).
CHROMIUM_ENABLE_CRASH_REPORTER=false
# MCP server type for browser automation
# Default: playwright
# Options:
# - playwright: Uses @playwright/mcp for browser automation
# - chrome-devtools: Uses chrome-devtools-mcp for browser control
CHROMIUM_MCP_SERVER=playwright
# ============================================================================
# RESEARCHER SETTINGS
# ============================================================================
# Base directory for passive capture output
RESEARCHER_DATA_DIR=./research_data
# Only attach to tabs whose URL contains this value
RESEARCHER_TAB_URL_FILTER=tradingview.com
# Reload matched tabs right after attaching (captures initial resources)
RESEARCHER_RELOAD_ON_ATTACH=true
# JSONL rotation size in MB
RESEARCHER_MAX_FILE_SIZE_MB=200
# Async writer channel buffer size
RESEARCHER_BUFFER_SIZE=5000
# Capture toggles
RESEARCHER_CAPTURE_HTTP=true
RESEARCHER_CAPTURE_WS=true
RESEARCHER_CAPTURE_STATIC=true
# Very high payload caps (bytes)
RESEARCHER_HTTP_MAX_BODY_BYTES=52428800
RESEARCHER_WS_MAX_FRAME_BYTES=20971520
RESEARCHER_RESOURCE_MAX_BYTES=104857600
# ============================================================================
# CONTROLLER SETTINGS (Huma API -> CDP -> TradingView JS)
# ============================================================================
# Auto-launch browser from controller (single-command startup).
# Default: false (requires separate `just start-browser`)
CONTROLLER_LAUNCH_BROWSER=false
# Bind address for controller HTTP server.
CONTROLLER_BIND_ADDR=127.0.0.1:8188
# Filter chart tabs for controller operations.
CONTROLLER_TAB_URL_FILTER=tradingview.com
# Per-call in-page JS evaluation timeout in milliseconds.
CONTROLLER_EVAL_TIMEOUT_MS=5000
# Controller logging level: debug|info|warn|error
CONTROLLER_LOG_LEVEL=info
# Controller log file path
CONTROLLER_LOG_FILE=logs/tv_controller.log
# Directory for chart snapshot storage
SNAPSHOT_DIR=./snapshots
# WebSocket relay via SSE (streams browser WS frames to external clients).
# Default: false
CONTROLLER_RELAY_ENABLED=false
# Path to relay YAML config defining which WS feeds to relay.
# Default: ./config/relay.yaml
CONTROLLER_RELAY_CONFIG=./config/relay.yaml