Files
x-server-mobile/deploy/.env.production.template
T
root 4ceb5eac7e chore: 重组项目文件结构,文档和部署文件归档
文件结构优化:
- docs/ 归档所有项目文档(PROJECT.md, PROJECT_ISSUES.md 等)
- deploy/ 归档所有部署相关文件(docker-compose.prod.yml, nginx 配置等)
- scripts/ 归档脚本文件(deploy.sh, rollback.sh)
- tests/ 归档测试文件(test_data.php)

更新引用路径:
- CLAUDE.md 更新文档路径引用
- 部署文档更新配置文件路径引用

清理文件:
- 移除非必要的测试文件(TestController, 测试脚本等)
- 移除重复/错误的目录

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 18:01:17 +08:00

52 lines
1.5 KiB
Bash

# X-Server Mobile 生产环境变量模板
# 使用方法: cp .env.production.template .env.production
# 然后填写实际值,不要将 .env.production 提交到代码仓库
# ============================================
# 数据库配置
# ============================================
DB_HOST=1Panel-mysql-xxxx
DB_PORT=3306
DB_DATABASE=xserver
DB_USERNAME=xserver
DB_PASSWORD=your_strong_password_here
# ============================================
# Redis 配置
# ============================================
REDIS_HOST=1Panel-redis-xxxx
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password_here
REDIS_DATABASE=0
# ============================================
# 飞书配置
# ============================================
FEISHU_APP_ID=cli_xxxxxxxxxxxxx
FEISHU_APP_SECRET=xxxxxxxxxxxxxxxxxxxx
FEISHU_ENCRYPT_KEY=xxxxxxxxxxxxxxxxxxxx
FEISHU_VERIFICATION_TOKEN=xxxxxxxxxxxxxxxxxxxx
FEISHU_TENANT_KEY=14e7bc0fe5985740
# 飞书应用 URL(获取方式:飞书开放平台 -> 应用详情)
FEISHU_APP_URL=https://open.feishu.cn
# ============================================
# 应用配置
# ============================================
APP_ENV=production
APP_DEBUG=false
APP_URL=https://xsm.hnxinyouhe.com
# ============================================
# 日志配置
# ============================================
LOG_LEVEL=info
# ============================================
# 部署配置
# ============================================
DEPLOY_USER=root
DEPLOY_SERVER=your-server-ip
DEPLOY_PATH=/opt/x-server-mobile