Migrate project from typing_practiceweb
This commit is contained in:
25
.env.production.example
Normal file
25
.env.production.example
Normal file
@@ -0,0 +1,25 @@
|
||||
# 生产环境配置示例
|
||||
# 复制此文件为 .env.production 用于生产环境构建
|
||||
|
||||
# Server Configuration
|
||||
SERVER_PORT=5001
|
||||
|
||||
# API 基础地址配置
|
||||
# 生产环境设置为 Nginx 代理地址(含第一层 /api)
|
||||
# Nginx 配置:location /api/ { proxy_pass http://localhost:5001/; }
|
||||
# 最终请求路径:https://d1kt.cn/api/api/xxx → 后端接收 http://localhost:5001/api/xxx
|
||||
REACT_APP_API_BASE_URL=/api
|
||||
|
||||
# Client Configuration
|
||||
CLIENT_PORT=3001
|
||||
REACT_APP_CLIENT_URL=https://d1kt.cn
|
||||
|
||||
# MongoDB Configuration
|
||||
MONGODB_URI=mongodb://localhost:27017/typeskill
|
||||
MONGODB_DB_NAME=typeskill
|
||||
|
||||
# JWT Configuration
|
||||
JWT_SECRET=your_production_jwt_secret_key_change_this
|
||||
JWT_EXPIRES_IN=24h
|
||||
|
||||
SKIP_PREFLIGHT_CHECK=true
|
||||
Reference in New Issue
Block a user