games_app/.env.example
2026-06-29 15:01:23 +02:00

59 lines
1.7 KiB
Plaintext

# Docker Compose + Phase B — copy to .env in repo root
# Launch: npm run phase-b:up (from repo root)
# Frontend: cd prediqo_web && npm run dev
# PostgreSQL (host — containers use host.docker.internal)
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_postgres_password
POSTGRES_DB=crypto_wallet
POSTGRES_PORT=5432
PGBOUNCER_PORT=6432
DATABASE_URL=postgresql://postgres:your_postgres_password@localhost:5432/crypto_wallet
DATABASE_PASSWORD=your_postgres_password
# Phase B ports
BACKEND_PORT=4000
WS_PORT=4001
REDIS_PORT=6379
WORKER_ID=worker-1
# Backend secrets
JWT_SECRET=your-super-secret-jwt-key-min-32-chars
JWT_ACCESS_EXPIRY=15m
JWT_REFRESH_EXPIRY=7d
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
PLATFORM_MNEMONIC=word1 word2 ... word24
# Blockchain (testnet example)
TRON_NODE_URL=https://api.shasta.trongrid.io
TRON_CONFIRMATIONS=3
USDT_TRC20_CONTRACT=
POLYGON_RPC_URL=https://rpc-amoy.polygon.technology
POLYGON_CONFIRMATIONS=8
USDC_POLYGON_CONTRACT=
ALLOW_WITHDRAWALS=false
RATE_LIMIT_MAX=2000
# Ports dédiés Prediqo (n'utilise pas 80/443 du VPS)
PREDIQO_HTTP_PORT=9080
PREDIQO_HTTPS_PORT=9443
CERTBOT_EMAIL=your-email@example.com
CERTBOT_DOMAIN1=prediqo.redirectme.net
APP_PUBLIC_URL=https://prediqo.redirectme.net:9443
INITIAL_SETUP_TOKEN=your-random-setup-token-min-32-chars
VITE_API_BASE_URL=https://prediqo.redirectme.net:9443
VITE_WS_ENABLED=true
VITE_WS_URL=wss://prediqo.redirectme.net:9443/ws/v1/games/candle-predict
# Phase B feature flags (used by Docker services)
REDIS_ENABLED=true
REDIS_ROUND_CACHE=true
BET_ASYNC=true
WS_ENABLED=true
WS_PATH=/ws/v1/games/candle-predict
# Optional: containerized PostgreSQL instead of host
# docker compose --profile docker-db up -d