52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
# Cosmo Production Environment Configuration
|
|
|
|
# ======================
|
|
# Database Configuration
|
|
# ======================
|
|
DATABASE_NAME=cosmo_db
|
|
DATABASE_USER=postgres
|
|
DATABASE_PASSWORD=your_secure_password_here
|
|
DATABASE_POOL_SIZE=20
|
|
DATABASE_MAX_OVERFLOW=10
|
|
|
|
# ======================
|
|
# Redis Configuration
|
|
# ======================
|
|
REDIS_PASSWORD=
|
|
REDIS_MAX_CONNECTIONS=50
|
|
|
|
# ======================
|
|
# Application Configuration
|
|
# ======================
|
|
# CORS - Support both internal IP access and external domain
|
|
# Format: comma-separated list of origins
|
|
# Examples:
|
|
# - Internal IP only: CORS_ORIGINS=http://192.168.1.100
|
|
# - Domain only: CORS_ORIGINS=http://your-domain.com,https://your-domain.com
|
|
# - Both IP and domain: CORS_ORIGINS=http://192.168.1.100,http://your-domain.com,https://your-domain.com
|
|
# - Allow all (development): CORS_ORIGINS=*
|
|
CORS_ORIGINS=*
|
|
|
|
# API Base URL for frontend
|
|
# Set this to your domain or IP address
|
|
VITE_API_BASE_URL=http://your-domain.com/api
|
|
|
|
# ======================
|
|
# Cache Configuration
|
|
# ======================
|
|
CACHE_TTL_DAYS=3
|
|
|
|
# ======================
|
|
# Upload Configuration
|
|
# ======================
|
|
MAX_UPLOAD_SIZE=10485760
|
|
|
|
# ======================
|
|
# Data Path Configuration
|
|
# ======================
|
|
# All data will be stored under /opt/cosmo/data/
|
|
# - /opt/cosmo/data/postgres - Database files
|
|
# - /opt/cosmo/data/redis - Redis persistence
|
|
# - /opt/cosmo/data/upload - User uploaded files
|
|
# - /opt/cosmo/data/logs - Application logs
|