Initial commit
This commit is contained in:
41
docker/env-config.md
Executable file
41
docker/env-config.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# 环境变量配置说明
|
||||
|
||||
部署前,请在项目根目录创建 `.env` 文件,包含以下配置:
|
||||
|
||||
## 安全配置 (必须修改!)
|
||||
|
||||
```bash
|
||||
# JWT密钥 - 用于会话签名,请使用随机字符串
|
||||
# 生成方法: openssl rand -base64 32
|
||||
JWT_SECRET=your-super-secret-jwt-key-change-in-production
|
||||
|
||||
# MySQL root密码
|
||||
MYSQL_ROOT_PASSWORD=root_password_change_me
|
||||
```
|
||||
|
||||
## MinIO对象存储配置
|
||||
|
||||
```bash
|
||||
# MinIO管理员用户名
|
||||
MINIO_ROOT_USER=minioadmin
|
||||
|
||||
# MinIO管理员密码 (至少8个字符)
|
||||
MINIO_ROOT_PASSWORD=minioadmin123
|
||||
```
|
||||
|
||||
## 应用配置
|
||||
|
||||
```bash
|
||||
# 应用标题
|
||||
VITE_APP_TITLE=宏量点云处理系统
|
||||
```
|
||||
|
||||
## 可选配置
|
||||
|
||||
```bash
|
||||
# 启用Redis缓存 (需要在docker-compose中启用with-cache profile)
|
||||
# REDIS_URL=redis://redis:6379
|
||||
|
||||
# 日志级别: debug, info, warn, error
|
||||
# LOG_LEVEL=info
|
||||
```
|
||||
Reference in New Issue
Block a user