# Database DATABASE_URL="postgresql://postgres:password@localhost:5432/rwa_identity?schema=public" # JWT JWT_SECRET="dev-jwt-secret-key" JWT_ACCESS_EXPIRES_IN="2h" JWT_REFRESH_EXPIRES_IN="30d" # Redis REDIS_HOST="localhost" REDIS_PORT=6379 REDIS_PASSWORD="" REDIS_DB=0 # Kafka KAFKA_BROKERS="localhost:9092" KAFKA_CLIENT_ID="identity-service" KAFKA_GROUP_ID="identity-service-group" # SMS Service SMS_API_URL="https://sms-api.example.com" SMS_API_KEY="dev-sms-api-key" # App APP_PORT=3000 APP_ENV="development" # Blockchain Encryption WALLET_ENCRYPTION_SALT="dev-wallet-salt" # MPC Service (NestJS 中间层) # 调用路径: identity-service → mpc-service (NestJS) → mpc-system (Go) MPC_SERVICE_URL="http://localhost:3001" MPC_MODE="local" # local 使用本地模拟,remote 调用 mpc-service # Backup Service (MPC 备份分片存储) # 安全要求: 必须部署在与 identity-service 不同的物理服务器上! BACKUP_SERVICE_URL="http://localhost:3002" BACKUP_SERVICE_ENABLED="true" SERVICE_JWT_SECRET="dev-service-jwt-secret-key"