75 lines
2.4 KiB
Plaintext
75 lines
2.4 KiB
Plaintext
# 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=cosmo_4f8b9e2a7c1d0f5e6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f
|
||
|
||
# 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
|
||
|
||
# ======================
|
||
# Rocket Launch Events (The Space Devs Launch Library 2)
|
||
# ======================
|
||
# 可选:在 https://awesome.space.nasaspaceflight.com/ 注册后申请令牌,
|
||
# 匿名同步有较严的速率限制,配置令牌后更宽松
|
||
# LAUNCH_LIBRARY_TOKEN=
|
||
|
||
# ======================
|
||
# 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
|