refactor(docs): 简化README结构,更新技术栈和项目结构描述

This commit is contained in:
2025-09-20 15:19:59 +08:00
parent cec08f89e2
commit b8c9e5c959
54 changed files with 14343 additions and 6124 deletions

View File

@@ -177,9 +177,48 @@ networks:
driver: bridge
```
## 3. 监控与维护
## 3. 域名配置
### 3.1 健康检查脚本
### 3.1 域名配置总览
| 域名类型 | 域名地址 | 用途 | 环境 |
|---------|---------|------|------|
| 后端API | `wapi.nanniwan.com` | 提供RESTful API服务 | 生产环境 |
| 管理后台 | `ad.nanniwan.com` | 管理员后台管理系统 | 生产环境 |
| 官方网站 | `www.nanniwan.com` | 产品官网和文档 | 生产环境 |
| 开发环境 | `localhost:3000` | 本地开发测试 | 开发环境 |
| 开发环境 | `localhost:5173` | Vite开发服务器 | 开发环境 |
### 3.2 配置文件更新
#### 后端配置更新
**文件:** `backend/src/config/config.js`
```javascript
const domainConfig = {
backend: 'wapi.nanniwan.com',
admin: 'ad.nanniwan.com',
website: 'www.nanniwan.com'
};
```
#### CORS配置更新
**文件:** `backend/src/main.js`
```javascript
app.use(cors({
origin: [
'http://localhost:3000',
'http://localhost:5173',
'https://wapi.nanniwan.com',
'https://ad.nanniwan.com',
'https://www.nanniwan.com'
],
credentials: true
}));
```
## 4. 监控与维护
### 4.1 健康检查脚本
```bash
#!/bin/bash