2026-04-19 19:15:01 +08:00
|
|
|
# 生产环境配置
|
|
|
|
|
NODE_ENV=production
|
|
|
|
|
PORT=5000
|
|
|
|
|
|
|
|
|
|
# 生产数据库配置
|
|
|
|
|
DB_HOST=localhost
|
|
|
|
|
DB_PORT=5432
|
|
|
|
|
DB_NAME=company_finance_db
|
|
|
|
|
DB_USER=finance_user
|
|
|
|
|
DB_PASSWORD=FinanceDB2026!
|
|
|
|
|
|
|
|
|
|
# 安全配置
|
|
|
|
|
JWT_SECRET=your-production-jwt-secret-key-change-this
|
|
|
|
|
SESSION_SECRET=your-production-session-secret-change-this
|
|
|
|
|
|
|
|
|
|
# 日志配置
|
|
|
|
|
LOG_LEVEL=info
|
|
|
|
|
LOG_FILE=/var/log/company-finance-api.log
|
|
|
|
|
|
|
|
|
|
# CORS配置
|
|
|
|
|
CORS_ORIGIN=https://your-domain.com
|
|
|
|
|
CORS_CREDENTIALS=true
|
|
|
|
|
|
|
|
|
|
# 性能配置
|
|
|
|
|
REQUEST_TIMEOUT=30000
|
2026-03-25 23:55:36 +07:00
|
|
|
BODY_PARSER_LIMIT=10mb
|