浏览代码

📝 docs(env): update environment variable documentation

- add .env.example file with comprehensive environment variable template
- update ui-architecture.md to reflect actual environment variable configuration
- include server configuration, database, Redis, MinIO, OSS and JWT settings
- add instructions to copy .env.example to .env for local configuration

🔧 chore(env): add environment variable template file

- create .env.example with all necessary configuration variables
- set default values for common settings like ports and URLs
- mark sensitive fields with placeholder text (your_password_here, etc.)
- include comments explaining each configuration section
yourname 2 月之前
父节点
当前提交
8de8ffae56
共有 2 个文件被更改,包括 43 次插入3 次删除
  1. 40 0
      .env.example
  2. 3 3
      docs/ui-architecture.md

+ 40 - 0
.env.example

@@ -0,0 +1,40 @@
+# 多八多Aider 环境变量配置模板
+
+# ========================
+# 服务器配置
+# ========================
+
+# 应用基础配置
+APP_NAME=多八多Aider
+PORT=8080
+NODE_ENV=development
+BASE=/
+
+# 数据库配置
+DB_HOST=localhost
+DB_PORT=3306
+DB_NAME=d8dai
+DB_USER=root
+DB_PASSWORD=your_password_here
+
+# Redis配置
+REDIS_HOST=localhost
+REDIS_PORT=6379
+REDIS_PASSWORD=
+
+# MinIO对象存储配置
+MINIO_ENDPOINT=localhost
+MINIO_PORT=9000
+MINIO_ACCESS_KEY=your_access_key
+MINIO_SECRET_KEY=your_secret_key
+MINIO_BUCKET=d8dai
+MINIO_USE_SSL=false
+
+# OSS配置
+OSS_BASE_URL=https://oss.d8d.fun
+
+# JWT配置
+JWT_SECRET=your_jwt_secret_here
+JWT_EXPIRE=7d
+
+# 复制此文件为 .env 并修改相应配置

+ 3 - 3
docs/ui-architecture.md

@@ -460,9 +460,9 @@ describe('Button', () => {
 ### 环境变量
 
 ```bash
-VITE_API_BASE_URL=http://localhost:8080
-VITE_APP_NAME=D8D Starter
-VITE_ENABLE_ANALYTICS=false
+# 实际环境变量配置(基于服务器端配置)
+OSS_BASE_URL=https://oss.d8d.fun
+APP_NAME=多八多Aider
 ```
 
 ## 11. 前端开发标准