Files
wecome-middleware/.env.example
xudw 034d425b21 初始提交: WeCom Middleware项目基础结构
包含以下内容:
1. Spring Boot后端项目结构
2. Vue.js前端项目结构
3. Docker Compose部署配置
4. MySQL数据库初始化脚本
5. Redis缓存配置
6. Nginx反向代理配置
7. 完整的项目文档

技术栈:
- 后端: Spring Boot 2.7.18 + Java 11 + MyBatis Plus
- 前端: Vue.js 3 + TypeScript + Element Plus
- 数据库: MySQL 8.0 + Redis 7
- 部署: Docker Compose + Nginx

已部署服务:
- 后端API: http://localhost:18080
- 前端界面: http://localhost:13000
- 数据库管理: http://localhost:18081
- MySQL: localhost:13306
- Redis: localhost:16379
2026-03-09 12:39:09 +08:00

40 lines
921 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WeCom Middleware 环境配置示例
# 复制此文件为 .env 并修改配置
# 企业微信配置
WECOM_BOT_ID=your_bot_id_here
WECOM_BOT_SECRET=your_bot_secret_here
# OpenClaw配置
OPENCLAW_GATEWAY_URL=ws://localhost:18789
OPENCLAW_GATEWAY_TOKEN=your_openclaw_token_here
# 数据库配置Docker Compose中已设置这里可以覆盖
MYSQL_ROOT_PASSWORD=wecom123456
MYSQL_DATABASE=wecom_middleware
MYSQL_USER=wecom
MYSQL_PASSWORD=wecom123456
# Redis配置
REDIS_PASSWORD=redis123456
# 应用配置
SPRING_PROFILES_ACTIVE=dev
SERVER_PORT=8080
# 日志级别
LOGGING_LEVEL_ROOT=INFO
LOGGING_LEVEL_COM_WECOM=DEBUG
# WebSocket配置
WECOM_WEBSOCKET_URL=wss://openws.work.weixin.qq.com
WECOM_HEARTBEAT_INTERVAL=30000
OPENCLAW_HEARTBEAT_INTERVAL=30000
# 消息路由配置
MESSAGE_RETRY_COUNT=3
MESSAGE_RETRY_DELAY=5000
SESSION_TIMEOUT_MINUTES=30
# 前端配置
VITE_API_BASE_URL=http://localhost:8080/api