-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
71 lines (58 loc) · 3.08 KB
/
.env.example
File metadata and controls
71 lines (58 loc) · 3.08 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
# ============================================================================
# Environment Variables for Preconfirmation Gateway
# ============================================================================
# This file is for LOCAL DEVELOPMENT (connecting to localhost services)
# For Docker deployment, use .env.docker instead
#
# SETUP INSTRUCTIONS:
# 1. Copy this file: cp .env.example .env
# 2. Fill in the REQUIRED variables marked below
# 3. The gateway will fail to start if required variables are missing
# ============================================================================
# ============================================================================
# REQUIRED VARIABLES - Gateway will NOT start without these
# ============================================================================
# Beacon API endpoint (REQUIRED)
# The gateway validates this on startup and will fail if not properly configured
# Examples:
# - Alchemy: https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY
# - Infura: https://mainnet.infura.io/eth/v1/YOUR_PROJECT_ID
# - Local: http://localhost:5052
BEACON_API_ENDPOINT=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY
# ECDSA signing private key (REQUIRED)
# Format: 64 hex characters (32 bytes), without 0x prefix
# Used for commitment signing
# Generate with:
# - cast wallet new
# - Hardhat account #0 for testing: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
# SECURITY WARNING: Never commit your real private key to git!
COMMITTER_PRIVATE_KEY=YOUR_ECDSA_PRIVATE_KEY_HERE
# BLS private key (REQUIRED)
# Format: 64 hex characters (32 bytes), without 0x prefix
# Used for constraint signing
# Generate with: openssl rand -hex 32
# SECURITY WARNING: Never commit your real private key to git!
BLS_PRIVATE_KEY=YOUR_BLS_PRIVATE_KEY_HERE
# ============================================================================
# DATABASE CONFIGURATION - Local development uses localhost
# ============================================================================
# Database connection for local development
# For Docker: This is overridden in docker-compose.yml to use container network
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/preconfirmation_gateway
# Test database connection (used by test suite)
TEST_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/preconfirmation_gateway_test
# ============================================================================
# OPTIONAL VARIABLES
# ============================================================================
# Logging level (default: info)
# Options: trace, debug, info, warn, error
RUST_LOG=info
# Custom configuration file path (default: config.toml)
# CONFIG_FILE=config.toml
# ============================================================================
# ADDITIONAL ENDPOINTS (Optional - can be configured in config.toml)
# ============================================================================
# Reth node RPC endpoint (optional override)
# RETH_ENDPOINT=http://localhost:8545
# Constraints API relay endpoint (optional override)
# CONSTRAINTS_API_ENDPOINT=http://localhost:3501