You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

101 lines
2.8 KiB

# MySQL版本
# .env
# ========================================================
#
# ========================================================
# AppID
WECHAT_APPID=wx1234567890abcdef
# AppSecret
WECHAT_APPSECRET=abcdef1234567890abcdef1234567890
# Token
WECHAT_TOKEN=your-random-token
# ========================================================
# MySQL数据库配置
# ========================================================
# MySQL主机地址
DB_HOST=your_mysql_host
# MySQL端口3306
DB_PORT=3306
# MySQL数据库名
DB_DATABASE=wechat_app
# MySQL用户名
DB_USER=your_mysql_username
# MySQL密码
DB_PASSWORD=your_mysql_password
# userlogin数据库名
DB_DATABASE_USERLOGIN=userlogin
# MySQL连接池配置
DB_MAX_CONNECTIONS=10
DB_MIN_CONNECTIONS=0
DB_CONNECTION_ACQUIRE_TIMEOUT=30000
DB_CONNECTION_IDLE_TIMEOUT=10000
# ========================================================
#
# ========================================================
#
PORT=3000
# development/production/test
NODE_ENV=development
# debug/info/warn/error
LOG_LEVEL=info
#
CORS_ORIGINS=https://your-miniprogram-domain.com,http://localhost:8080
# ========================================================
#
# ========================================================
# JWT密钥API认证
JWT_SECRET=your-random-jwt-secret
# JWT过期时间
JWT_EXPIRES_IN=86400
#
ENCRYPTION_KEY=your-encryption-key-32-bytes-length
# ========================================================
#
# ========================================================
# API基础URL
WECHAT_API_BASE_URL=https://api.weixin.qq.com
#
WECHAT_LOGIN_PATH=/sns/jscode2session
#
WECHAT_API_TIMEOUT=5000
# ========================================================
#
# ========================================================
#
DEVELOPMENT_SHOW_ERROR_DETAILS=true
#
ENABLE_REQUEST_LOGGING=true
# ========================================================
#
# ========================================================
# Gzip压缩
PRODUCTION_ENABLE_GZIP=true
#
PRODUCTION_ENABLE_CACHE=true
#
PRODUCTION_CACHE_TTL=3600