rps-royale/.env.example
Ubuntu 64e8fb6c49 Initial commit: monorepo structure, smart contract, server, and Phaser frontend
Phase 0 foundation:
- Docker Compose with PostgreSQL, Redis, Hardhat node
- RPSArena.sol commit-reveal smart contract with tests
- Node.js + Socket.io server with matchmaking and match state machine
- Next.js + Phaser 3 frontend with Boot, Lobby, Arena, Result scenes
- Nginx Proxy Manager integration planned for jeu.cosmolan.fr

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 02:14:42 +00:00

30 lines
699 B
Text

# Application
NODE_ENV=development
APP_URL=https://jeu.cosmolan.fr
API_URL=https://api.jeu.cosmolan.fr
# Database (PostgreSQL dédié)
DATABASE_URL=postgresql://rpsuser:rpspass@rps-db:5432/rpsdb?schema=public
POSTGRES_USER=rpsuser
POSTGRES_PASSWORD=rpspass
POSTGRES_DB=rpsdb
# Redis
REDIS_URL=redis://rps-redis:6379
# Blockchain
HARDHAT_RPC_URL=http://hardhat-node:8545
SEPOLIA_RPC_URL=https://rpc.sepolia.org
PRIVATE_KEY=0x...
CONTRACT_ADDRESS=0x...
CHAIN_ID=31337
# Server
SERVER_PORT=3001
CORS_ORIGIN=https://jeu.cosmolan.fr
# Web
NEXT_PUBLIC_API_URL=https://api.jeu.cosmolan.fr
NEXT_PUBLIC_CONTRACT_ADDRESS=0x...
NEXT_PUBLIC_CHAIN_ID=31337
NEXT_PUBLIC_HARDHAT_RPC_URL=http://127.0.0.1:3054