forked from wangziqi/gongxue-base
feat(task1): restructure directories for turborepo monorepo
- Move backend/ to apps/server/ via git mv - Move frontend/ to apps/admin/ via git mv - Create packages/typescript-config/ with base, nestjs, and react-vite presets
This commit is contained in:
31
apps/server/.env.example
Normal file
31
apps/server/.env.example
Normal file
@@ -0,0 +1,31 @@
|
||||
# ============================
|
||||
# 宿舍水电费系统 - 生产环境配置
|
||||
# ============================
|
||||
# 复制此文件为 .env 并修改配置值
|
||||
# cp .env.example .env
|
||||
|
||||
# ---- 数据库配置 ----
|
||||
DB_TYPE=mysql
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_USERNAME=dorm_billing
|
||||
DB_PASSWORD=你的数据库密码
|
||||
DB_DATABASE=dorm_billing
|
||||
|
||||
# ---- JWT 认证 ----
|
||||
# 务必修改为一个复杂的随机字符串!
|
||||
JWT_SECRET=请替换为一个复杂的随机字符串-至少32位
|
||||
JWT_EXPIRES_IN=24h
|
||||
|
||||
# ---- 初始管理员 ----
|
||||
# 首次启动时自动创建的管理员密码(之后可在系统内修改)
|
||||
ADMIN_PASSWORD=请替换为强密码
|
||||
|
||||
# ---- 服务端口 ----
|
||||
PORT=3000
|
||||
|
||||
# ---- 文件上传 ----
|
||||
# 合同 PDF 存储根目录(相对或绝对)
|
||||
# 生产环境建议设为绝对路径,如 /www/wwwroot/jidi.gongxue100.com/backend/uploads
|
||||
# 目录需由 pm2/Node 进程用户可读写
|
||||
UPLOAD_DIR=./uploads
|
||||
Reference in New Issue
Block a user