-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
110 lines (91 loc) · 3.76 KB
/
Copy path.env.example
File metadata and controls
110 lines (91 loc) · 3.76 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
# Switchboard Environment Configuration (2-Service Architecture)
# Copy this file to .env and configure your settings
#
# Architecture:
# - Customer API (port 3000): Customer-facing API gateway
# - Core Engine (port 3001): Backend processing (oracle, billing, blockchain)
#
# Database: Choose MongoDB OR PostgreSQL by setting DATABASE_TYPE
# Solana Configuration
SOLANA_NETWORK=devnet
SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_KEYPAIR_PATH=/path/to/your/keypair.json
# Program IDs (will be generated during deployment)
STATE_ORACLE_PROGRAM_ID=
COORDINATOR_PROGRAM_ID=
# EVM Chain RPC URLs
ETHEREUM_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY
POLYGON_RPC_URL=https://polygon-mumbai.g.alchemy.com/v2/YOUR_KEY
ARBITRUM_RPC_URL=https://arb-goerli.g.alchemy.com/v2/YOUR_KEY
OPTIMISM_RPC_URL=https://opt-goerli.g.alchemy.com/v2/YOUR_KEY
BSC_RPC_URL=https://data-seed-prebsc-1-s1.binance.org:8545/
AVALANCHE_RPC_URL=https://api.avax-test.network/ext/bc/C/rpc
FANTOM_RPC_URL=https://rpc.testnet.fantom.network/
# Layer 2 Solution RPC URLs
BASE_RPC_URL=https://base-goerli.g.alchemy.com/v2/YOUR_KEY
ZKSYNC_RPC_URL=https://testnet.era.zksync.dev
POLYGONZKEVM_RPC_URL=https://rpc.public.zkevm-test.net
LINEA_RPC_URL=https://rpc.goerli.linea.build
MANTLE_RPC_URL=https://rpc.testnet.mantle.xyz
SCROLL_RPC_URL=https://sepolia-rpc.scroll.io
# Alternative Layer 1 RPC URLs
NEAR_RPC_URL=https://rpc.testnet.near.org
COSMOS_RPC_URL=https://rpc.sentry-01.theta-testnet.polkachu.com
TERRA_RPC_URL=https://pisco-rpc.terra.dev
SUI_RPC_URL=https://fullnode.testnet.sui.io:443
APTOS_RPC_URL=https://fullnode.testnet.aptoslabs.com/v1
# Emerging Network RPC URLs
CELESTIA_RPC_URL=https://rpc-mocha.pops.one
STARKNET_RPC_URL=https://starknet-goerli.g.alchemy.com/v2/YOUR_KEY
FLOW_RPC_URL=https://rest-testnet.onflow.org
HECO_RPC_URL=https://http-testnet.hecochain.com
KROMA_RPC_URL=https://api.sepolia-kroma.network
# Additional Network RPC URLs
CELO_RPC_URL=https://alfajores-forno.celo-testnet.org
GNOSIS_RPC_URL=https://rpc.chiadochain.net
MOONBEAM_RPC_URL=https://rpc.api.moonbase.moonbeam.network
HARMONY_RPC_URL=https://api.s0.b.hmny.io
CRONOS_RPC_URL=https://evm-t3.cronos.org
AURORA_RPC_URL=https://testnet.aurora.dev
EVMOS_RPC_URL=https://eth.bd.evmos.dev:8545
KAVA_RPC_URL=https://evm.testnet.kava.io
KLAYTN_RPC_URL=https://public-node-api.klaytnapi.com/v1/baobab
OASIS_RPC_URL=https://testnet.emerald.oasis.dev
# Service Configuration
NODE_ENV=development
LOG_LEVEL=info
METRICS_ENABLED=true
# Database Configuration (choose mongodb or postgresql)
DATABASE_TYPE=mongodb
# MongoDB Configuration (if DATABASE_TYPE=mongodb)
MONGODB_PASSWORD=switchboard123
MONGODB_URL=mongodb://switchboard:switchboard123@localhost:27017/switchboard
# PostgreSQL Configuration (if DATABASE_TYPE=postgresql)
POSTGRES_PASSWORD=postgres123
POSTGRES_URL=postgres://switchboard:postgres123@localhost:5432/switchboard
# ClickHouse for analytics
CLICKHOUSE_PASSWORD=clickhouse123
CLICKHOUSE_URL=http://switchboard:clickhouse123@localhost:8123/chainsync_analytics
# Redis (optional - for caching)
REDIS_URL=redis://localhost:6379
# Security
JWT_SECRET=your-secure-jwt-secret-here
API_RATE_LIMIT=100
# Monitoring (optional)
SENTRY_DSN=https://your-sentry-dsn.ingest.sentry.io/
PROMETHEUS_PORT=9090
# Stripe Configuration (for billing in Core Engine)
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_PUBLIC_KEY=pk_test_your_stripe_public_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# Service URLs (for internal communication)
CORE_ENGINE_URL=http://localhost:3001
CUSTOMER_API_URL=http://localhost:3000
# Streaming Configuration
STREAMING_ENABLED=true
COORDINATION_LATENCY_TARGET=400
BATCH_PROCESSING_SIZE=50
MAX_CONCURRENT_CHAINS=100
# API Keys for external services
ALCHEMY_API_KEY=your-alchemy-api-key
CHAINSYNC_API_KEY=your-api-key-here