# Veza Chat Server Environment Configuration
# Edit this file to configure your chat-server service

# Environment
RUST_ENV=production
RUST_LOG=info

# Database
DATABASE_URL=postgresql://veza:password@10.10.10.10:5432/veza?sslmode=disable
DB_MAX_CONNECTIONS=10
DB_CONNECT_TIMEOUT=10
DB_AUTO_MIGRATE=true

# Security
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production-min-32-chars
JWT_ACCESS_DURATION=15m
JWT_REFRESH_DURATION=7d
JWT_ALGORITHM=HS256

# Server
SERVER_BIND_ADDR=0.0.0.0:8081
SERVER_WORKERS=0
CONNECTION_TIMEOUT=30
HEARTBEAT_INTERVAL=30

# Redis (optional)
REDIS_URL=redis://10.10.10.10:6379
REDIS_ENABLED=true
REDIS_POOL_SIZE=10

# RabbitMQ
RABBITMQ_URL=amqp://veza:password@10.10.10.10:5672/%2f
