35 lines
857 B
Plaintext
35 lines
857 B
Plaintext
# Database
|
||
DATABASE_URL="postgresql://postgres:password@localhost:5432/rwa_identity?schema=public"
|
||
|
||
# JWT
|
||
JWT_SECRET="your-super-secret-jwt-key-change-in-production"
|
||
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="your-sms-api-key"
|
||
|
||
# App
|
||
APP_PORT=3000
|
||
APP_ENV="development"
|
||
|
||
# Blockchain Encryption
|
||
WALLET_ENCRYPTION_SALT="rwa-wallet-salt-change-in-production"
|
||
|
||
# MPC Service (NestJS 中间层)
|
||
# 调用路径: identity-service → mpc-service (NestJS) → mpc-system (Go)
|
||
MPC_SERVICE_URL="http://localhost:3001"
|
||
MPC_MODE="local" # local 使用本地模拟,remote 调用 mpc-service
|