This repository was archived by the owner on Apr 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
118 lines (96 loc) · 4.31 KB
/
.env.example
File metadata and controls
118 lines (96 loc) · 4.31 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
# ------------------------------------------------------------
# DBC file path
# ------------------------------------------------------------
DBC_FILE_PATH=example.dbc
# ------------------------------------------------------------
# File uploader — team DBCs from GitHub (optional)
# ------------------------------------------------------------
# Fine-grained PAT or classic PAT with contents:read on Western-Formula-Racing/DBC
GITHUB_DBC_TOKEN=
# GITHUB_DBC_REPO=Western-Formula-Racing/DBC
# GITHUB_DBC_BRANCH=main
# Optional limits for .zip uploads (file-uploader); defaults are generous for team use
# UPLOAD_ZIP_MAX_ARCHIVE_BYTES=2147483648
# UPLOAD_ZIP_MAX_MEMBER_BYTES=4294967296
# UPLOAD_ZIP_MAX_TOTAL_UNCOMPRESSED_BYTES=25769803776
# UPLOAD_ZIP_MAX_CSV_IN_ZIP=5000
# ------------------------------------------------------------
# InfluxDB credentials
# ------------------------------------------------------------
INFLUXDB_URL=http://influxdb3:8181
INFLUXDB_INIT_USERNAME=admin
INFLUXDB_INIT_PASSWORD=password
INFLUXDB_ADMIN_TOKEN=apiv3_dev-influxdb-admin-token
# ------------------------------------------------------------
# Grafana credentials
# ------------------------------------------------------------
GRAFANA_ADMIN_PASSWORD=password
# ------------------------------------------------------------
# Grafana Bridge (Pecan "Open in Grafana" button)
# ------------------------------------------------------------
# Service account token — create at: https://grafana.westernformularacing.org
# Administration → Service Accounts → New token (Editor role)
GRAFANA_API_TOKEN=
# ------------------------------------------------------------
# Grafana Cloudflare Zero Trust SSO
# ------------------------------------------------------------
# Cloudflare Access injects Cf-Access-Authenticated-User-Email on every authenticated request.
# Grafana's auth proxy reads it to auto-create/login users with the Editor role.
# No extra config needed here — values are hardcoded in docker-compose.yml because
# they are not secret. Ensure grafana.westernformularacing.org is protected by a
# Cloudflare Access Application in the Zero Trust dashboard.
# ------------------------------------------------------------
# Explorer UI
# ------------------------------------------------------------
EXPLORER_SESSION_SECRET=dev-explorer-session-key
# ------------------------------------------------------------
# Slack configuration
# ------------------------------------------------------------
ENABLE_SLACK=false
SLACK_DEFAULT_CHANNEL=C0123456789
# Your real Slack tokens
SLACK_BOT_TOKEN=xoxb-TOKEN
SLACK_APP_TOKEN=xapp-TOKEN
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/TOKEN
# File uploader webhook (fallback to Slack webhook)
FILE_UPLOADER_WEBHOOK_URL=${SLACK_WEBHOOK_URL}
# Optional debugging
DEBUG=0
# ------------------------------------------------------------
# Data Downloader configuration
# ------------------------------------------------------------
INFLUX_HOST=http://influxdb3:8181
INFLUX_TOKEN=apiv3_dev-influxdb-admin-token
INFLUX_DATABASE=WFR26
INFLUX_SCHEMA=iox
# Comma-separated season list for data-downloader season switcher.
# Format: NAME:YEAR[:COLOR_RGB], newest first.
# Add previous seasons here to keep them accessible in the UI.
# Example with two seasons: SEASONS=WFR25:2025,WFR26:2026
SEASONS=WFR26:2026
DATA_DIR=/app/data
SCANNER_YEAR=2025
SCANNER_BIN=hour
SCANNER_INCLUDE_COUNTS=true
SCANNER_INITIAL_CHUNK_DAYS=31
SENSOR_WINDOW_DAYS=7
# How far back to look for sensor data when scanning
SENSOR_LOOKBACK_DAYS=365
# If no sensor data is found in the lookback period, use this fallback range
SENSOR_FALLBACK_START=2025-06-10T00:00:00
SENSOR_FALLBACK_END=2025-07-10T00:00:00
SCAN_INTERVAL_SECONDS=3600
VITE_API_BASE_URL=http://localhost:8000
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
# End Data Downloader configuration
# ------------------------------------------------------------
# AI Code Generation (Sandbox) configuration
# ------------------------------------------------------------
# Cohere API key for AI-powered code generation
COHERE_API_KEY=your-cohere-api-key-here
# Cohere model to use (default: command-r-plus)
COHERE_MODEL=command-r-plus
# Maximum number of retries when generated code fails (default: 2)
MAX_RETRIES=2
# InfluxDB database name for telemetry queries (default: telemetry)
INFLUXDB_DATABASE=telemetry