nex_docus/.env.example

47 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ==================== 数据库配置 ====================
# MySQL Root 密码
MYSQL_ROOT_PASSWORD=root_password_change_me
# 应用数据库配置
DB_NAME=nex_docus
DB_USER=nexdocus
DB_PASSWORD=password_change_me
MYSQL_PORT=3306
# ==================== Redis 配置 ====================
REDIS_PASSWORD=redis_password_change_me
REDIS_PORT=6379
REDIS_DB=8
# ==================== 应用配置 ====================
# JWT 密钥(请务必修改为随机字符串)
SECRET_KEY=your-secret-key-change-me-in-production-use-openssl-rand-hex-32
# 调试模式(生产环境设置为 false
DEBUG=false
# ==================== 服务端口配置 ====================
# 后端服务端口
BACKEND_PORT=8000
# 前端服务端口
FRONTEND_PORT=8080
# ==================== 前端配置 ====================
# API 基础 URL根据实际部署方式选择
# 方式1推荐使用 Nginx 反向代理,前后端同域名同端口
VITE_API_BASE_URL=/api
# 方式2直接访问后端端口需开放后端端口可能有跨域问题
# VITE_API_BASE_URL=http://yourdomain.com:8001
# ==================== 存储配置 ====================
# 文件存储路径(宿主机路径,用于存储项目文档和上传文件)
STORAGE_PATH=./storage
# ==================== 管理员账号配置 ====================
# 初始管理员账号信息
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin@123
ADMIN_EMAIL=admin@unisspace.com
ADMIN_NICKNAME=系统管理员