Files
webman-buildadmin/.env-example
2026-04-20 10:31:14 +08:00

34 lines
1.0 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.
# BuildAdmin Webman 环境配置
# 复制为 .env 并修改实际值
# 应用
APP_DEBUG = true
APP_DEFAULT_TIMEZONE = Asia/Shanghai
# 语言
LANG_DEFAULT_LANG = zh-cn
# 数据库config/thinkorm.php/database.php
DATABASE_DRIVER = mysql
DATABASE_TYPE = mysql
DATABASE_HOSTNAME = 127.0.0.1
DATABASE_DATABASE = buildadmin-webman-game-number
DATABASE_USERNAME = buildadmin-webman-game-number
DATABASE_PASSWORD = 123456
DATABASE_HOSTPORT = 3306
DATABASE_CHARSET = utf8mb4
DATABASE_PREFIX =
# 框架缓存驱动config/cache.php → default供 Think-ORM 模型 Cache、get_sys_config 等使用;与 Redis 热点缓存无关)
# 可选值见 cache.php 中 stores当前一般为 file
CACHE_DRIVER = file
# 游戏热点数据 Redisconfig/game_hot_cache.php用户 / game_config / game_record依赖 config/redis.php
GAME_HOT_CACHE_ENABLED = true
GAME_HOT_CACHE_TTL_GAME_CONFIG = 86400
GAME_HOT_CACHE_TTL_GAME_RECORD = 60
GAME_HOT_CACHE_TTL_USER = 90
# 移动端接口鉴权(/api/v1/authToken
AUTH_TOKEN_SECRET = 564d14asdasd113e46542asd6das1a2a