Files
lotteryAdmin/.env.example
kang 36117144dc refactor(env, api, i18n): 更新环境配置与API代理逻辑
修改 .env.example,优化API配置说明并明确线上环境要求。更新多语言错误提示,确保用户在未启用API代理时获得清晰反馈。重构API代理逻辑,移除开发代理文件,简化代码结构,提升可维护性。
2026-05-29 15:55:18 +08:00

19 lines
935 B
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.
# =============================================================================
# 管理端配置:复制为 .env 后按需修改(本地/线上同一套)
# =============================================================================
# 三端联调Laravel 8000、管理端 3801、玩家端 3800
# -----------------------------------------------------------------------------
# Laravel API — 唯一必配项
# - 浏览器请求同源 /api/v1
# - Next 自动转发到 LOTTERY_API_UPSTREAM无需宝塔单独配 /api 转发)
# -----------------------------------------------------------------------------
# 本地
LOTTERY_API_UPSTREAM=http://127.0.0.1:8000
# 线上Laravel 在本机时用内网地址更快)
# LOTTERY_API_UPSTREAM=http://127.0.0.1:8000
# LOTTERY_API_UPSTREAM=https://lotterylaravel.tanumo.com
# Next 开发:局域网 IP 访问(逗号分隔 host无协议
# ALLOWED_DEV_ORIGINS=192.168.0.101