# Cosmo Production Environment Configuration # ====================== # Database Configuration # ====================== DATABASE_NAME=cosmo_db DATABASE_USER=postgres DATABASE_PASSWORD=cosmo DATABASE_POOL_SIZE=20 DATABASE_MAX_OVERFLOW=10 # ====================== # Redis Configuration # ====================== REDIS_PASSWORD= REDIS_MAX_CONNECTIONS=50 # ====================== # Application Configuration # ====================== # JWT Secret Key (IMPORTANT: Change this in production!) JWT_SECRET_KEY=your-production-secret-key-change-this-to-random-string # 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 # 推荐:留空或注释掉,让前端使用相对路径 /api(通过 Nginx 反向代理) # 这样可以同时支持内网 IP 和外网域名访问 # VITE_API_BASE_URL= # 如果前后端分离部署在不同服务器,才需要设置完整的 API 地址: # VITE_API_BASE_URL=http://your-domain.com/api # ====================== # Cache Configuration # ====================== CACHE_TTL_DAYS=3 # ====================== # Upload Configuration # ====================== MAX_UPLOAD_SIZE=10485760 # ====================== # Proxy Configuration # ====================== # HTTP Proxy for accessing NASA JPL Horizons API (optional) # Format: http://host:port or https://host:port # Example: HTTP_PROXY=http://192.168.124.203:20171 HTTP_PROXY=http://192.168.124.203:20171 HTTPS_PROXY=http://192.168.124.203:20171 # ====================== # 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