rwadurian/backend/services/mpc-service/.env.example

50 lines
1.6 KiB
Plaintext

# =============================================================================
# MPC Party Service - Environment Variables
# =============================================================================
# Application
NODE_ENV=development
APP_PORT=3006
API_PREFIX=api/v1
# Database (Prisma)
DATABASE_URL="mysql://mpc_user:password@localhost:3306/rwa_mpc_party_db"
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=5
# JWT
JWT_SECRET=your-jwt-secret-change-in-production
JWT_ACCESS_EXPIRES_IN=2h
JWT_REFRESH_EXPIRES_IN=30d
# Kafka
KAFKA_BROKERS=localhost:9092
KAFKA_CLIENT_ID=mpc-party-service
KAFKA_GROUP_ID=mpc-party-group
# MPC System (deployed on 192.168.1.111)
# account-service: Creates keygen/signing sessions
MPC_ACCOUNT_SERVICE_URL=http://192.168.1.111:4000
# session-coordinator: Coordinates TSS sessions (used by MPCCoordinatorClient)
MPC_COORDINATOR_URL=http://192.168.1.111:8081
MPC_SESSION_COORDINATOR_URL=http://192.168.1.111:8081
# message-router: WebSocket for TSS message routing
MPC_MESSAGE_ROUTER_WS_URL=ws://192.168.1.111:8082
# server-party-api: Generates user shares (synchronous)
MPC_SERVER_PARTY_API_URL=http://192.168.1.111:8083
# API key for authenticating with MPC system
MPC_API_KEY=your-mpc-api-key-change-in-production
# Share Encryption
# IMPORTANT: Generate a secure 32-byte hex key for production
SHARE_MASTER_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
# MPC Protocol Timeouts (in milliseconds)
MPC_KEYGEN_TIMEOUT=600000
MPC_SIGNING_TIMEOUT=300000
MPC_REFRESH_TIMEOUT=600000