rwadurian/backend/mpc-system/.env.party.example

60 lines
2.7 KiB
Plaintext

# =============================================================================
# MPC-System Production Party Configuration
# =============================================================================
# Copy to .env.party and configure for your party's environment
#
# Usage:
# cp .env.party.example .env.party
# # Edit .env.party with your values
# ./deploy.sh party up
#
# Each party machine needs its own .env.party with unique PARTY_ID
# =============================================================================
# =============================================================================
# Party Identity (REQUIRED - must be unique across all parties)
# =============================================================================
PARTY_ID=server-party-1
# Options: persistent (default), delegate, temporary
PARTY_ROLE=persistent
# =============================================================================
# Central Service (REQUIRED - public address)
# =============================================================================
# Message Router gRPC endpoint (the ONLY connection parties need)
# Session operations are proxied through Message Router to Session Coordinator
MESSAGE_ROUTER_ADDR=grpc.mpc.example.com:50051
# =============================================================================
# Local Database (for storing encrypted key shares)
# =============================================================================
POSTGRES_USER=mpc_user
POSTGRES_PASSWORD=your_secure_local_postgres_password
# =============================================================================
# Security Keys (REQUIRED)
# =============================================================================
# Master key for encrypting key shares (64 hex characters = 256-bit)
# IMPORTANT: Use the same key across all parties in the same MPC group
# Generate with: openssl rand -hex 32
CRYPTO_MASTER_KEY=your_64_character_hex_master_key_here
# =============================================================================
# Optional: Notification Channels (for offline mode)
# =============================================================================
# If any of these are set, party operates in offline mode (24h async)
# If none are set, party operates in real-time mode (Message Router push)
NOTIFICATION_EMAIL=
NOTIFICATION_PHONE=
NOTIFICATION_PUSH_TOKEN=
# =============================================================================
# Optional: Local HTTP Port (for health checks only)
# =============================================================================
# This party doesn't need to expose any ports - it connects outbound
# HTTP port is optional for local health monitoring
PARTY_HTTP_PORT=8080
# Environment
ENVIRONMENT=production