mongodb支持配置用户名密码,向下兼容

This commit is contained in:
NepPure
2025-02-28 20:41:07 +08:00
parent cd2cd28a62
commit f20fca0c01
6 changed files with 37 additions and 13 deletions

View File

@@ -11,6 +11,9 @@ PLUGINS=["src2.plugins.chat"]
MONGODB_HOST=127.0.0.1
MONGODB_PORT=27017
DATABASE_NAME=MegBot
MONGODB_USERNAME = "" # 默认空值
MONGODB_PASSWORD = "" # 默认空值
MONGODB_AUTH_SOURCE = "" # 默认空值
#key and url
CHAT_ANY_WHERE_KEY=