yingsa/server/.env
Ethanfly 2ee017bccf feat(branding): Update logo and favicon assets across all platforms
- Replace favicon.svg in admin panel with new brand logo design
- Add logo.png and logo.svg files to dedicated logo directory
- Update miniprogram with new logo assets (logo.png and logo.svg)
- Add README-UPLOAD.md documentation for miniprogram upload functionality
- Update miniprogram app.js and config.js for logo integration
- Update miniprogram user page (pages/user/index.js) to use new branding
- Update server upload route to handle new logo assets
- Add test-upload.js for upload functionality testing
- Update server .env configuration for asset handling
- Standardize brand visual identity across admin, miniprogram, and server platforms
2026-02-03 17:26:02 +08:00

78 lines
2.2 KiB
Bash
Raw 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.

# ==========================================
# 影杀俱乐部管理系统 - 环境配置模板
# ==========================================
# 使用说明:
# 1. 复制此文件为 .env
# 2. 根据实际情况修改各项配置
# 3. .env 文件不应提交到版本控制
# ==========================================
# ------------------------------------------
# 服务器配置
# ------------------------------------------
# 运行环境development / production / test
NODE_ENV=development
# 服务端口默认3000
PORT=3001
# ------------------------------------------
# 数据库配置 (MySQL)
# ------------------------------------------
# 数据库主机地址
DB_HOST=171.80.12.212
# 数据库端口默认3306
DB_PORT=3306
# 数据库名称
DB_NAME=yingsha
# 数据库用户名
DB_USER=yingsha
# 数据库密码
DB_PASSWORD=yingsha
# ------------------------------------------
# JWT 认证配置
# ------------------------------------------
# JWT 密钥(请使用足够复杂的随机字符串)
# 可以使用以下命令生成node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_SECRET=f9164dd44f60d5a4c969599fa8e8e0b45445540ce23be5f9e20be9216671b8c4
# JWT Token 过期时间
# 格式:数字+单位s=秒, m=分钟, h=小时, d=天)
# 示例7d=7天, 24h=24小时, 30m=30分钟
JWT_EXPIRES_IN=7d
# ------------------------------------------
# 微信小程序配置
# ------------------------------------------
# 微信小程序 AppID
# 在微信公众平台 -> 开发管理 -> 开发设置 中获取
WX_APPID=wxcadb23af01ea7229
# 微信小程序 AppSecret
# 在微信公众平台 -> 开发管理 -> 开发设置 中获取
# 注意:请妥善保管,不要泄露
WX_SECRET=34b3995fd79e8fec64f4ffcda63dd92e
# ------------------------------------------
# 文件上传配置(可选)
# ------------------------------------------
# 上传文件大小限制单位MB
UPLOAD_MAX_SIZE=10
# 上传文件存储路径
UPLOAD_PATH=uploads
# ------------------------------------------
# 其他配置(可选)
# ------------------------------------------
# 管理后台默认超级管理员密码(首次初始化时使用)
DEFAULT_ADMIN_PASSWORD=admin123
# 日志级别debug / info / warn / error
LOG_LEVEL=info