forked from Vatix-Protocol/vatix-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
72 lines (59 loc) · 2.83 KB
/
Copy path.env.example
File metadata and controls
72 lines (59 loc) · 2.83 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
# =============================================================================
# Vatix Backend — Environment Variables
# Copy this file to .env and fill in the values for your environment.
# Do NOT commit .env or any file containing real credentials.
# =============================================================================
# -----------------------------------------------------------------------------
# Server
# -----------------------------------------------------------------------------
PORT=3000
# Accepted values: development | test | production
NODE_ENV=development
# CORS — comma-separated list of allowed origins
# Leave unset to use restrictive defaults (localhost:3000 and localhost:5173 in dev, none in production)
# Example: CORS_ALLOWED_ORIGINS=https://app.vatix.io,https://staging.vatix.io
CORS_ALLOWED_ORIGINS=
# Database
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/vatix
# -----------------------------------------------------------------------------
# Redis
# -----------------------------------------------------------------------------
REDIS_URL=redis://localhost:6379
# Stellar
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# Stellar Soroban RPC endpoint used by the indexer and oracle for chain reads.
# Testnet: https://soroban-testnet.stellar.org
# Mainnet: https://soroban.stellar.org
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# -----------------------------------------------------------------------------
# Stellar network (optional — defaults shown)
# -----------------------------------------------------------------------------
# STELLAR_NETWORK=testnet
# STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# API key for internal/protected endpoints
API_KEY=your-api-key-here
# Request body size limit (bytes). Default: 65536 (64 KB).
# Requests exceeding this limit are rejected with 413 Request Entity Too Large.
BODY_LIMIT_BYTES=65536
# Rate limiting
# Global baseline — applies to all routes
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX=100
# RATE_LIMIT_HEAVY_WINDOW_MS=60000 # Heavy-read endpoints window
# RATE_LIMIT_HEAVY_MAX=20 # Heavy-read endpoints max requests
# Write endpoints (POST /orders)
RATE_LIMIT_WRITE_WINDOW_MS=60000
RATE_LIMIT_WRITE_MAX=10
# Finalization Worker
FINALIZATION_INTERVAL_MS=60000
FINALIZATION_CHALLENGE_WINDOW_SECONDS=3600
FINALIZATION_LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Oracle
# -----------------------------------------------------------------------------
# How often the oracle scheduler polls for ingestion and resolution checks (ms).
# Recommended default: 30000 (30 seconds).
# Lower bound: 5000 ms — prevents runaway polling under misconfiguration.
# Upper bound: 3600000 ms (1 hour) — ensures checks are not indefinitely delayed.
ORACLE_POLL_INTERVAL_MS=30000