Files
lotteryFront/.env.example
kang 4fc2b38a40 refactor: 更新环境配置与 API 代理逻辑
- 修改 .env.example,优化玩家端配置说明,明确本地与线上环境的使用方式。
- 重构 API 代理逻辑,移除过时的开发代理文件,统一使用 Next.js 代理 API 请求。
- 更新 CSP 配置,简化连接来源说明,提升安全性。
- 调整 lottery-api-base.ts 中的注释,增强代码可读性。
2026-05-29 15:55:19 +08:00

30 lines
1.2 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.
# =============================================================================
# 玩家端配置:复制为 .env 后按需修改(本地/线上同一套)
# =============================================================================
# -----------------------------------------------------------------------------
# Laravel API — 唯一必配项
# - 浏览器请求同源 /api/v1
# - Next 自动转发到 LOTTERY_API_UPSTREAM无需宝塔单独配 /api 转发)
# -----------------------------------------------------------------------------
# 本地
LOTTERY_API_UPSTREAM=http://127.0.0.1:8000
# 线上
# 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
# 可选:大厅 play/effective 的 ?currency=
# NEXT_PUBLIC_LOTTERY_PLAY_CURRENCY=NPR
# 可选入口授权失败时返回主站build 前设置,会打进 JS
# NEXT_PUBLIC_MAIN_SITE_URL=http://localhost:5173
# Reverb本地全栈联调时取消注释并 php artisan reverb:start不配则走轮询
# NEXT_PUBLIC_REVERB_APP_KEY=
# NEXT_PUBLIC_REVERB_HOST=127.0.0.1
# NEXT_PUBLIC_REVERB_PORT=8080
# NEXT_PUBLIC_REVERB_SCHEME=http