forked from ChainLearnOfficial/chainlearn-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (33 loc) · 1.99 KB
/
Copy path.env.example
File metadata and controls
40 lines (33 loc) · 1.99 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
# ── Server ──────────────────────────────────────────
NODE_ENV=development
PORT=3000
HOST=0.0.0.0
# ── Database ───────────────────────────────────────
DATABASE_URL=postgresql://chainlearn:password@localhost:5432/chainlearn
# ── Redis ──────────────────────────────────────────
REDIS_URL=redis://localhost:6379
# ── JWT ────────────────────────────────────────────
# OWASP: 256-bit secret = at least 64 characters, must not be a placeholder
JWT_SECRET=replace-this-with-a-random-256-bit-secret-that-is-at-least-64-characters
# ── Stellar ────────────────────────────────────────
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
STELLAR_SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
STELLAR_PLATFORM_SECRET=
STELLAR_QUIZ_CONTRACT_ID=
STELLAR_REWARD_CONTRACT_ID=
STELLAR_CREDENTIAL_CONTRACT_ID=
# Optional — enables on-chain contentHash verification on enrollment (#294)
STELLAR_PROGRESS_TRACKER_CONTRACT_ID=
# ── Rate Limiting ──────────────────────────────────
RATE_LIMIT_MAX=100
RATE_LIMIT_WINDOW_MS=60000
# ── Request Body Limits ────────────────────────────
REQUEST_BODY_LIMIT_BYTES=1048576
MULTIPART_BODY_LIMIT_BYTES=5242880
AVATAR_UPLOAD_MAX_BYTES=2097152
AVATAR_UPLOAD_DIR=uploads/avatars
PUBLIC_BASE_URL=http://localhost:3000
# ── AI Service ─────────────────────────────────────
AI_SERVICE_URL=http://localhost:8000
AI_TIMEOUT_MS=30000