65 lines
2.1 KiB
Bash
65 lines
2.1 KiB
Bash
# Server
|
|
NODE_ENV=development
|
|
PORT=4000
|
|
API_PREFIX=/api/v1
|
|
|
|
# Database (synced from repo root .env)
|
|
DATABASE_URL=postgresql://postgres@localhost:5432/crypto_wallet
|
|
DATABASE_PASSWORD=Japhni81!
|
|
|
|
# JWT
|
|
JWT_SECRET=36763979244226452948404D635166546A576D5A7134743777217A25432A462D
|
|
# One-time first-admin setup (used on /setup until an administrator exists)
|
|
INITIAL_SETUP_TOKEN=36763979244226452948404D635166546A576D5A7134743777217A25432A462ED
|
|
JWT_ACCESS_EXPIRY=15m
|
|
JWT_REFRESH_EXPIRY=7d
|
|
|
|
# Encryption (AES-256) - 32 bytes hex
|
|
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
|
|
|
|
# HD Wallet - platform mnemonic (24 words). Keep secret.
|
|
PLATFORM_MNEMONIC=world access act denial panther slab target snap frequent loyal pigeon soldier angry vanish reduce tomato praise educate convince copper mistake truck ordinary pelican
|
|
|
|
# Blockchain — testnet (required in development; mainnet blocked by networkGuard)
|
|
TRON_NODE_URL=https://api.shasta.trongrid.io
|
|
TRON_API_KEY=
|
|
TRON_CONFIRMATIONS=3
|
|
USDT_TRC20_CONTRACT=TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs
|
|
|
|
POLYGON_RPC_URL=https://rpc-amoy.polygon.technology
|
|
USDC_POLYGON_CONTRACT=0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582
|
|
POLYGON_CONFIRMATIONS=8
|
|
|
|
# Safety (recommended for testing)
|
|
ALLOW_WITHDRAWALS=false
|
|
|
|
# Rate limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX=2000
|
|
LOGIN_RATE_LIMIT_MAX=20
|
|
# Withdrawal
|
|
DAILY_WITHDRAWAL_LIMIT_USD=10000
|
|
LARGE_WITHDRAWAL_THRESHOLD_USD=1000
|
|
|
|
# Email verification (dev: links logged to console unless SMTP is set in repo root .env)
|
|
# EMAIL_TRANSPORT=console
|
|
APP_PUBLIC_URL=https://prediqo.redirectme.net:9443
|
|
|
|
# Candle Predict engine (performance — lower = less DB load at scale)
|
|
# Real-time rounds still settle every ENGINE tick; backfill only fills historical gaps.
|
|
CANDLE_PREDICT_ENGINE_TICK_MS=3000
|
|
CANDLE_PREDICT_BACKFILL_MAX_PER_TICK=2
|
|
CANDLE_PREDICT_BACKFILL_INTERVAL_MS=60000
|
|
CANDLE_PREDICT_BACKFILL_SEED_MAX=15
|
|
|
|
# Phase B — Redis + realtime (local Node dev; Docker stack uses root .env)
|
|
REDIS_URL=redis://localhost:6379
|
|
REDIS_ENABLED=true
|
|
REDIS_ROUND_CACHE=true
|
|
BET_ASYNC=true
|
|
ENGINE_ENABLED=false
|
|
WS_ENABLED=false
|
|
WS_PORT=4001
|
|
WS_PATH=/ws/v1/games/candle-predict
|
|
WORKER_ID=worker-1
|