Files
performance-evaluation-system/backend/.env.production.example
2026-04-12 11:53:28 +08:00

27 lines
844 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 生产环境配置示例
# 根据您的部署方式调整以下配置
# 数据库配置
# Docker Compose 部署DB_HOST=db, DB_PORT=3306 (容器内部)
# 传统部署数据库在本地DB_HOST=localhost, DB_PORT=3306
# 传统部署数据库在远程服务器DB_HOST=数据库服务器IP, DB_PORT=3306
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=your_secure_password_here
DB_NAME=employee_performance
# JWT 配置(生产环境必须使用强密钥)
JWT_SECRET=generate_a_strong_random_string_at_least_32_chars_long
# FastGPT API 配置
FASTGPT_API_KEY=your_fastgpt_api_key_here
FASTGPT_API_URL=https://api.fastgpt.in/api/v1/chat/completions
FASTGPT_MODEL=gpt-4
# 代理配置(如果需要通过代理访问 FastGPT
# HTTPS_PROXY=http://127.0.0.1:7890
# 服务器配置
PORT=3001
NODE_ENV=production