2024-02-27 15:40:19 +08:00
|
|
|
# 这是示例配置文件
|
|
|
|
# 请将其重命名为 .env 并根据需要进行修改
|
2024-04-30 15:03:46 +08:00
|
|
|
|
|
|
|
# 网站标题[string]
|
|
|
|
SITE_TITLE=
|
|
|
|
# 是否启用注册功能[boolean]
|
|
|
|
REGISTRATION_ENABLED=
|
|
|
|
# 网站域名[string]
|
|
|
|
DOMAIN=
|
2024-04-01 14:07:08 +08:00
|
|
|
|
2024-02-27 15:40:19 +08:00
|
|
|
# 数据库配置
|
2024-04-30 15:03:46 +08:00
|
|
|
# 数据库地址[string](Ex: localhost:3306)
|
|
|
|
DB_HOST=
|
|
|
|
# 数据库名[string](Ex: yii2basic)
|
|
|
|
DB_NAME=
|
|
|
|
# 数据库用户名[string](Ex: root)
|
|
|
|
DB_USERNAME=
|
|
|
|
# 数据库密码[string]
|
|
|
|
DB_PASSWORD=
|
2024-03-01 18:00:47 +08:00
|
|
|
|
|
|
|
# 验证码配置
|
2024-04-30 15:03:46 +08:00
|
|
|
# 验证服务提供商[reCAPTCHA,hCaptcha,Turnstile,None]
|
|
|
|
VERIFY_PROVIDER=
|
|
|
|
|
|
|
|
# Google Recaptcha Site Key[string](Ex: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI)(Test Key)
|
|
|
|
RECAPTCHA_SITE_KEY=
|
|
|
|
# Google Recaptcha Secret[string](Ex: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe)(Test Key)
|
|
|
|
RECAPTCHA_SECRET=
|
|
|
|
|
|
|
|
# hCaptcha Site Key[string](Ex: 10000000-ffff-ffff-ffff-000000000001)(Test Key)
|
|
|
|
HCAPTCHA_SITE_KEY=
|
|
|
|
# hCaptcha Secret Key[string](Ex: 0x0000000000000000000000000000000000000000)(Test Key)
|
|
|
|
HCAPTCHA_SECRET=
|
|
|
|
|
|
|
|
# Turnstile Site Key[string](Ex: 1x00000000000000000000AA)(Test Key)
|
|
|
|
TURNSTILE_SITE_KEY=
|
|
|
|
# Turnstile Secret Key[string](Ex: 1x0000000000000000000000000000000AA)(Test Key)
|
|
|
|
TURNSTILE_SECRET=
|
|
|
|
|
|
|
|
# Cookie Validation Key[string](Randomly generated key)
|
|
|
|
COOKIE_VALIDATION_KEY=
|
2024-03-01 18:00:47 +08:00
|
|
|
|
|
|
|
# IP地理位置配置
|
2024-04-30 15:03:46 +08:00
|
|
|
# 是否启用ipinfo.io[boolean]
|
|
|
|
ENABLE_IPINFO=
|
|
|
|
# ipinfo.io token[string]
|
|
|
|
IPINFO_TOKEN=
|
2024-04-01 14:07:08 +08:00
|
|
|
|
|
|
|
# Microsoft Clarity
|
2024-04-30 15:03:46 +08:00
|
|
|
# 是否启用Microsoft Clarity[boolean]
|
|
|
|
CLARITY_ENABLED=
|
|
|
|
# Microsoft Clarity Project ID[string]
|
|
|
|
CLARITY_ID=
|
2024-04-01 14:07:08 +08:00
|
|
|
|
|
|
|
# Google Analytics
|
2024-04-30 15:03:46 +08:00
|
|
|
# 是否启用Google Analytics[boolean]
|
|
|
|
GA_ENABLED=
|
|
|
|
# Google Analytics Tracking ID[string]
|
|
|
|
GA_ID=
|