concord/.env.example

89 lines
1.8 KiB
Plaintext

# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
GRPC_PORT=9000
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=concord
DB_MAX_CONNS=25
DB_MIN_CONNS=5
DB_MAX_CONN_LIFETIME=5m
DB_MAX_CONN_IDLE_TIME=5m
# Authentication
JWT_SECRET=change-me-in-production-use-long-random-string-here
JWT_EXPIRATION=15m
REFRESH_EXPIRATION=168h
VOICE_JWT_SECRET=change-me-voice-secret-use-different-long-random-string
VOICE_JWT_EXPIRATION=5m
# OAuth Providers (Optional - leave empty to disable)
OAUTH_GOOGLE_CLIENT_ID=
OAUTH_GOOGLE_CLIENT_SECRET=
OAUTH_GOOGLE_REDIRECT_URL=http://localhost:8080/auth/google/callback
OAUTH_GITHUB_CLIENT_ID=
OAUTH_GITHUB_CLIENT_SECRET=
OAUTH_GITHUB_REDIRECT_URL=http://localhost:8080/auth/github/callback
# Voice Server Configuration
VOICE_UDP_HOST=0.0.0.0
VOICE_UDP_PORT_START=50000
VOICE_UDP_PORT_END=52000
VOICE_CONTROL_PORT=9001
VOICE_SERVER_ID=
VOICE_REGION=ru-west-1
VOICE_SERVER_NAME=voice-server-1
VOICE_SECRET=change-me-voice-server-secret
VOICE_PUBLIC_HOST=
REGISTRY_URL=localhost:9000
VOICE_HEARTBEAT_INTERVAL=30s
VOICE_CAPACITY=1000
# Redis Cache Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_ENABLED=true
# Rate Limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_REQUESTS_PER_MINUTE=60
RATE_LIMIT_BURST=10
# Logging
LOG_LEVEL=info
LOG_FORMAT=json
LOG_OUTPUT=stdout
LOG_ENABLE_FILE=false
LOG_FILE_PATH=/var/log/concord/app.log
# Metrics & Monitoring
METRICS_ENABLED=true
METRICS_PORT=9100
METRICS_PATH=/metrics
# Voice metrics port
VOICE_METRICS_PORT=9101
# Health Checks
HEALTH_PORT=8081
HEALTH_PATH=/health
# Voice health port
VOICE_HEALTH_PORT=8082
# Storage Configuration
STORAGE_PATH=./uploads
STORAGE_URL=http://localhost:8080/files
# Rate Limiting (updated)
RATE_LIMIT_ENABLED=true
RATE_LIMIT_REQUESTS_PER_MINUTE=120
RATE_LIMIT_BURST=20