61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
# ── Database ──
|
||
DB_HOST=localhost
|
||
DB_PORT=5432
|
||
DB_USERNAME=genex
|
||
DB_PASSWORD=genex_dev_password
|
||
DB_NAME=genex
|
||
|
||
# ── Redis ──
|
||
REDIS_HOST=localhost
|
||
REDIS_PORT=6379
|
||
|
||
# ── JWT ──
|
||
JWT_ACCESS_SECRET=dev-access-secret-change-in-production
|
||
JWT_ACCESS_EXPIRY=15m
|
||
JWT_REFRESH_SECRET=dev-refresh-secret-change-in-production
|
||
JWT_REFRESH_EXPIRY=7d
|
||
|
||
# ── SMS ──
|
||
SMS_ENABLED=false
|
||
SMS_CODE_EXPIRE_SECONDS=300
|
||
SMS_DAILY_LIMIT=10
|
||
SMS_MAX_VERIFY_ATTEMPTS=5
|
||
|
||
# ── Aliyun SMS (only when SMS_ENABLED=true) ──
|
||
# ALIYUN_ACCESS_KEY_ID=
|
||
# ALIYUN_ACCESS_KEY_SECRET=
|
||
# ALIYUN_SMS_SIGN_NAME=券金融
|
||
# ALIYUN_SMS_TEMPLATE_CODE=SMS_501745796
|
||
# ALIYUN_SMS_TPL_REGISTER=SMS_501745796
|
||
# ALIYUN_SMS_TPL_LOGIN=SMS_501720822
|
||
# ALIYUN_SMS_TPL_RESET_PASSWORD=SMS_501735781
|
||
# ALIYUN_SMS_TPL_CHANGE_PHONE=SMS_501925825
|
||
# ALIYUN_SMS_TPL_IDENTITY_VERIFY=SMS_501925825
|
||
# ALIYUN_SMS_TPL_TRANSACTION=SMS_501820752
|
||
# ALIYUN_SMS_TPL_PAYMENT=SMS_501855782
|
||
|
||
# ── Email (Gmail SMTP) ──
|
||
# EMAIL_ENABLED=true 时使用 Gmail 真实发送; false 时验证码打印到控制台
|
||
EMAIL_ENABLED=false
|
||
EMAIL_CODE_EXPIRE_SECONDS=300
|
||
EMAIL_DAILY_LIMIT=10
|
||
EMAIL_MAX_VERIFY_ATTEMPTS=5
|
||
|
||
# Gmail SMTP (only when EMAIL_ENABLED=true)
|
||
# 步骤:Google 账号 → 安全性 → 开启两步验证 → 应用专用密码 → 选「邮件」→ 复制16位密码
|
||
# GMAIL_USER=noreply@gmail.com
|
||
# GMAIL_APP_PASSWORD=xxxxxxxxxxxxxx (16位,填写时不含空格)
|
||
# EMAIL_FROM_NAME=Genex
|
||
|
||
# ── WeChat OAuth (微信开放平台移动应用) ──
|
||
# 在微信开放平台 (open.weixin.qq.com) 创建移动应用后获取
|
||
# AppID 以 wx 开头,16位;AppSecret 32位,严格保密,不可泄露到客户端
|
||
# WECHAT_APP_ID=wx0000000000000000
|
||
# WECHAT_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||
|
||
# ── Kafka (optional, events silently skipped if unavailable) ──
|
||
KAFKA_BROKERS=localhost:9092
|
||
|
||
# ── Service ──
|
||
PORT=3010
|