2022-08-26 15:10:27 +00:00
|
|
|
# debug 开关
|
|
|
|
DEBUG=false
|
|
|
|
|
|
|
|
# MySQL
|
|
|
|
DB_HOST=127.0.0.1
|
|
|
|
DB_PORT=3306
|
|
|
|
DB_USERNAME=user
|
|
|
|
DB_PASSWORD="password"
|
|
|
|
DB_DATABASE=paimon
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
REDIS_HOST=127.0.0.1
|
|
|
|
REDIS_PORT=6379
|
|
|
|
REDIS_DB=0
|
|
|
|
|
|
|
|
# 联系 https://t.me/BotFather 使用 /newbot 命令创建机器人并获取 token
|
|
|
|
BOT_TOKEN="xxxxxxx"
|
|
|
|
|
2022-10-13 07:38:47 +00:00
|
|
|
# bot 管理员
|
|
|
|
ADMINS=[{ "username": "", "user_id": -1 }]
|
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
# 记录错误并发送消息通知开发人员 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
# ERROR_NOTIFICATION_CHAT_ID=chat_id
|
2022-08-26 15:10:27 +00:00
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
# 文章推送群组 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
# CHANNELS=[{ "name": "", "chat_id": 1}]
|
2022-08-31 06:46:04 +00:00
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
# 群验证功能 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
# VERIFY_GROUPS=[]
|
2022-09-10 15:30:13 +00:00
|
|
|
|
2022-10-13 07:38:47 +00:00
|
|
|
# logger 配置 可选配置项
|
2022-10-13 13:01:45 +00:00
|
|
|
# 打印时的宽度
|
2022-09-10 15:30:13 +00:00
|
|
|
LOGGER_WIDTH=180
|
2022-10-13 13:01:45 +00:00
|
|
|
# log 文件存放目录
|
2022-09-10 15:30:13 +00:00
|
|
|
LOGGER_LOG_PATH="logs"
|
2022-10-13 13:01:45 +00:00
|
|
|
# log 时间格式,参考 datetime.strftime
|
2022-09-10 15:30:13 +00:00
|
|
|
LOGGER_TIME_FORMAT="[%Y-%m-%d %X]"
|
2022-10-13 13:01:45 +00:00
|
|
|
# log 高亮关键词
|
2022-09-11 07:08:02 +00:00
|
|
|
LOGGER_RENDER_KEYWORDS=["BOT"]
|
2022-10-13 13:01:45 +00:00
|
|
|
# traceback 相关配置
|
|
|
|
LOGGER_TRACEBACK_MAX_FRAMES=20
|
|
|
|
LOGGER_LOCALS_MAX_DEPTH=0
|
2022-10-16 03:58:24 +00:00
|
|
|
LOGGER_LOCALS_MAX_LENGTH=10
|
|
|
|
LOGGER_LOCALS_MAX_STRING=80
|
2022-09-11 07:08:02 +00:00
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
# mtp 客户端 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
# API_ID=12345
|
|
|
|
# API_HASH="abcdefg"
|
2022-10-07 05:55:50 +00:00
|
|
|
|
|
|
|
# ENKA_NETWORK_API 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
# ENKA_NETWORK_API_AGENT=""
|
2022-10-12 13:39:47 +00:00
|
|
|
|
|
|
|
# Web Server
|
|
|
|
# 目前只用于预览模板,仅开发环境启动
|
|
|
|
# WEB_URL=http://localhost:8080/
|
|
|
|
# WEB_HOST=localhost
|
|
|
|
# WEB_PORT=8080
|