← back to Watches
.env.example
79 lines
# Omega Watch Price History - Environment Configuration
# Basic-auth credentials for the dashboard in "user:password" form.
# REQUIRED at boot — server throws if missing. MUST be set in prod .env to a
# freshly-rotated secret — do NOT reuse the legacy DW2025Secure! value.
DW_BASIC_AUTH=admin:CHANGE-ME-BEFORE-DEPLOY
# Server Configuration
NODE_ENV=production
PORT=7600
HOST=0.0.0.0
# Server IP
SERVER_IP=45.61.58.125
# PostgreSQL Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=omega_watches
DB_USER=postgres
DB_PASSWORD=postgres
DB_POOL_MAX=20
DB_POOL_MIN=5
DB_STATEMENT_TIMEOUT=10000
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/omega_watches
# Redis Cache Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_URL=redis://localhost:6379
# API Keys (for future integrations)
# CHRONO24_API_KEY=your_api_key_here
# WATCHCHARTS_API_KEY=your_api_key_here
# OAuth - Google
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://45.61.58.125:7600/api/auth/google/callback
# OAuth - Apple
APPLE_CLIENT_ID=your_apple_client_id
APPLE_TEAM_ID=your_apple_team_id
APPLE_KEY_ID=your_apple_key_id
APPLE_PRIVATE_KEY_PATH=./keys/apple-auth-key.p8
APPLE_REDIRECT_URI=http://45.61.58.125:7600/api/auth/apple/callback
# OAuth - GitHub
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_REDIRECT_URI=http://45.61.58.125:7600/api/auth/github/callback
# Security
JWT_SECRET=your_jwt_secret_here
API_RATE_LIMIT=100
API_RATE_WINDOW=15
# Monitoring and Alerting
SLACK_WEBHOOK_URL=
EMAIL_ALERTS_TO=admin@example.com
UPTIME_ROBOT_API_KEY=
# Backup Configuration
BACKUP_ENABLED=true
BACKUP_SCHEDULE="0 2 * * *"
BACKUP_RETENTION_DAYS=30
S3_BACKUP_BUCKET=
# Logging
LOG_LEVEL=info
LOG_FILE_PATH=/var/log/omega-watches/
# Performance
CACHE_TTL=300
MAX_REQUEST_SIZE=10mb
COMPRESSION_LEVEL=6