-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (39 loc) · 1.69 KB
/
.env.example
File metadata and controls
44 lines (39 loc) · 1.69 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
# =============================================================================
# Environment Variables - Example Configuration
# =============================================================================
# Copy this file to .env and fill in your values
# =============================================================================
# Server Configuration
# =============================================================================
HOST=0.0.0.0
PORT=8000
DEBUG=false
ENVIRONMENT=production
# =============================================================================
# Redis Configuration (REQUIRED)
# =============================================================================
# Railway Redis: Use the REDIS_URL from Railway Variables
# Upstash: rediss://default:xxxxx@us1-xxx.upstash.io:6379
REDIS_URL=redis://localhost:6379
REDIS_MAX_CONNECTIONS=20
REDIS_SOCKET_TIMEOUT=5.0
# =============================================================================
# Bybit Configuration
# =============================================================================
BYBIT_WS_URL=wss://stream.bybit.com/v5/public/linear
BYBIT_TESTNET=false
BYBIT_CATEGORY=linear
BYBIT_MAX_SYMBOLS_PER_SUBSCRIPTION=10
BYBIT_MAX_SYMBOLS_PER_CONNECTION=500
BYBIT_PING_INTERVAL=20.0
# =============================================================================
# Rate Limiting
# =============================================================================
MAX_SUBSCRIPTIONS_PER_CLIENT=100
MAX_CLIENTS_TOTAL=10000
CLIENT_IDLE_TIMEOUT=300.0
# =============================================================================
# Logging
# =============================================================================
LOG_LEVEL=INFO
LOG_JSON=true