Files
dafuweng-saiadmin6.x/server/.env.example

48 lines
1.1 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.
# 数据库配置
DB_TYPE=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=dafuweng-v3
DB_USER=dafuweng-v3
DB_PASSWORD=tA6rciKLKxpFNGAm
DB_PREFIX=
DB_POOL_MAX=32
DB_POOL_MIN=4
# 缓存方式,支持file|redisAPI 用户登录缓存需使用 redis
CACHE_MODE=redis
REDIS_POOL_MAX=32
# Redis配置
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=''
REDIS_DB=1
# webman channel用于定时任务通信
WEBMAN_CHANNEL_HOST=127.0.0.1
WEBMAN_CHANNEL_PORT=2207
WEBMAN_CHANNEL_LISTEN_HOST=0.0.0.0
# 游戏地址,用于 /api/v1/getGameUrl 返回
GAME_URL=dice-v3-game.yuliao666.top
# API 鉴权与用户(可选,不填则用默认值)
# authToken 签名密钥(必填,与客户端约定,用于 signature 校验)
API_AUTH_TOKEN_SECRET=xF75oK91TQj13s0UmNIr1NBWMWGfflNO
# authToken 时间戳允许误差秒数,防重放,默认 300
API_AUTH_TOKEN_TIME_TOLERANCE=300
API_AUTH_TOKEN_EXP=86400
# API_USER_TOKEN_EXP=604800
API_USER_CACHE_EXPIRE=86400
API_USER_ENCRYPT_KEY=Wj818SK8dhKBKNOY3PUTmZfhQDMCXEZi
# 验证码配置,支持cache|session
CAPTCHA_MODE=cache
LOGIN_CAPTCHA_ENABLE=false
#前端目录
FRONTEND_DIR=saiadmin-vue
#生成环境
APP_DEBUG=false