JhHardwareWRS_BackPoint/.env.production.example
2026-07-24 21:55:59 +08:00

35 lines
1.1 KiB
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.

# 生产环境模板
# 使用方式cp .env.production.example .env
# 注意:生产环境必须替换所有 change_me / replace-with-* 占位值,真实密钥不要提交到仓库。
# 数据库连接配置
MYSQL_HOST=replace-with-production-mysql-host
MYSQL_PORT=3306
MYSQL_DATABASE=jiaheng_erp
MYSQL_USER=replace-with-production-mysql-user
MYSQL_PASSWORD=change_me
# 应用运行配置
APP_ENV=production
APP_TIMEZONE=Asia/Shanghai
JWT_SECRET=change_me_to_a_long_random_string
TOKEN_EXPIRE_MINUTES=43200
AUTO_CREATE_TABLES=false
BACKGROUND_TASKS_ENABLED=true
# 微信小程序配置
WECHAT_APP_ID=replace-with-wechat-app-id
WECHAT_APP_SECRET=replace-with-wechat-app-secret
WECHAT_QR_ENV_VERSION=release
# 服务器缺少中文字体时,填写字体文件绝对路径,例如 /usr/share/fonts/truetype/noto/NotoSansCJK-Regular.ttc。
JH_QR_FONT_PATH=
# 静态资源与公网访问配置
PUBLIC_BASE_URL=https://api.jiahengsmart.top
UPLOAD_DIR=uploads
# ERP 扫码登录配置
ERP_API_BASE_URL=https://replace-with-erp-api-domain
ERP_QR_LOGIN_SHARED_SECRET=replace-with-same-secret-on-erp-backend
ERP_LOGIN_QRCODE_DIR=erp-login-qrcodes