Files
lotteryLaravel/.env.example
kang b496a9457c
Some checks failed
lotterLaravel CI / test (push) Has been cancelled
feat: enhance configuration and logging for admin services
- Updated .env.example to enable Redis Lua for lottery risk pool and added configuration for agent settlement.
- Improved AGENTS.md to clarify site operations and admin roles.
- Enhanced PHPUnit configuration with memory limit and cache directory settings.
- Refactored AdminReportQueryService and related services to utilize LimitedQuery for better data handling and truncation warnings.
- Added logging for draw settlement failures in DrawTickService.
- Introduced credit preflight checks and reverse bet hold functionality in PlayerCreditService.
- Improved risk pool management with new Redis lock handling in RiskPoolService and TicketPlacementService.
2026-06-16 17:08:10 +08:00

69 lines
1.6 KiB
Plaintext
Raw 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.example .env && composer install && php artisan key:generate && php artisan migrate
# 生产常驻queue:work、schedule:work、reverb:start见 README
APP_NAME=Lottery
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost:8000
APP_BIND_HOST=127.0.0.1
VITE_HOST=0.0.0.0
LOG_LEVEL=debug
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=lottery
DB_USERNAME=
DB_PASSWORD=
SESSION_DRIVER=redis
SESSION_DOMAIN=null
BROADCAST_CONNECTION=reverb
REVERB_APP_ID=
REVERB_APP_KEY=
REVERB_APP_SECRET=
REVERB_SERVER_HOST=0.0.0.0
REVERB_HOST=localhost
REVERB_PORT=8080
REVERB_SCHEME=http
QUEUE_CONNECTION=redis
CACHE_STORE=redis
LOTTERY_RISK_POOL_USE_REDIS_LUA=true
# 生产建议独立配置;留空则回落 MAIN_SITE_SSO_JWT_SECRET勿在生产与 SSO 混用)
# LOTTERY_NATIVE_JWT_SECRET=
# 预发可设为 false禁止代理账期关账
AGENT_SETTLEMENT_ALLOW_PRODUCTION_CLOSE=true
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_DB=0
REDIS_CACHE_DB=1
# 逗号分隔含协议。本地示例http://localhost:3800,http://localhost:3801
CORS_ALLOWED_ORIGINS=
CORS_SUPPORTS_CREDENTIALS=false
CORS_MAX_AGE=0
LOTTERY_SETTINGS_CACHE_TTL=60
LOTTERY_PLAYER_AUTH_DEV_BYPASS=false
ADMIN_API_TOKEN_TTL_DAYS=7
# 主站对接:生产请在后台「接入站点」(admin_sites) 维护;以下为可选 legacy 兜底,本地联调可填,生产可留空
# MAIN_SITE_BASE_URL=
# MAIN_SITE_SSO_JWT_SECRET=
# MAIN_SITE_WALLET_API_URL=
# MAIN_SITE_WALLET_API_KEY=
# MAIN_SITE_WALLET_TIMEOUT=10
DEV_SEED_WALLET_BALANCE_MINOR=125000
DEV_SEED_WALLET_FROZEN_MINOR=0
SANCTUM_STATEFUL_DOMAINS=