-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.preview-local.example
More file actions
53 lines (46 loc) · 1.8 KB
/
Copy path.env.preview-local.example
File metadata and controls
53 lines (46 loc) · 1.8 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
# =============================================================================
# Preview Container - Local Testing Environment
# =============================================================================
# Copy this file to .env.preview-local and fill in the values.
# cp .env.preview-local.example .env.preview-local
#
# This file is passed to `docker run --env-file` — it is NOT baked into the image.
# --- Tenderly vnet ---
# Provide just the vnet ID. The entrypoint auto-resolves
# the RPC endpoint, fork block number, and deployment chain.
TENDERLY_VNET_ID=
TENDERLY_ACCESS_KEY=
TENDERLY_USERNAME=
TENDERLY_PROJECT=
# --- External (production) DB for seeding ---
# The preview container seeds data from the production read-only DB.
# Get these from the team or from GCP Secret Manager.
EXTERNAL_DATABASE_HOST=
EXTERNAL_DATABASE_PORT=27140
EXTERNAL_DATABASE_USERNAME=
EXTERNAL_DATABASE_PASSWORD=
EXTERNAL_DATABASE_NAME=
# --- Internal container DB ---
# The entrypoint constructs DATABASE_URL automatically from PREVIEW_DB_PASSWORD
# with proper URL encoding, so do NOT set DATABASE_URL here.
PREVIEW_DB_PASSWORD=preview123
REDIS_URL=redis://localhost:6379
# --- Optional: WebSocket endpoint for realtime strategy event subscriptions ---
# If set, enables sub-100ms strategy updates via WSS instead of 3s polling.
# For Tenderly vnets, use the WSS RPC URL from the vnet dashboard.
# ETHEREUM_WSS_ENDPOINT=
# --- Feature flags for preview ---
IS_FORK=1
SHOULD_HARVEST=1
SHOULD_UPDATE_ANALYTICS=1
SHOULD_POLL_QUOTES=0
SHOULD_POLL_HISTORIC_QUOTES=0
SEND_NOTIFICATIONS=0
NODE_ENV=production
# --- Optional: skip seed for quick iteration on non-seed issues ---
# SKIP_SEED=1
# --- Optional: API keys (needed if the app queries external price APIs) ---
# CODEX_API_KEY=
# COINGECKO_API_KEY=
# COINMARKETCAP_API_KEY=
# DUNE_API_KEY=