27 lines
846 B
Plaintext
27 lines
846 B
Plaintext
# 生产环境配置示例
|
||
# 根据您的部署方式调整以下配置
|
||
|
||
# 数据库配置
|
||
# 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://cloud.fastgpt.cn/api/v1/chat/completions
|
||
FASTGPT_MODEL=gpt-4
|
||
|
||
# 代理配置(如果需要通过代理访问 FastGPT)
|
||
# HTTPS_PROXY=http://127.0.0.1:7890
|
||
|
||
# 服务器配置
|
||
PORT=3001
|
||
NODE_ENV=production |