feat : 代码梳理 移除所有敏感密钥 通过环境变量方式配置
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped

This commit is contained in:
zcr
2025-12-30 16:49:08 +08:00
parent 1be716e414
commit 18024a2d70
167 changed files with 5283 additions and 10464 deletions

View File

@@ -1,6 +1,6 @@
import redis
from app.core.config import REDIS_HOST, REDIS_PORT
from app.core.config import settings
class Redis(object):
@@ -10,8 +10,8 @@ class Redis(object):
@staticmethod
def _get_r():
host = REDIS_HOST
port = REDIS_PORT
host = settings.REDIS_HOST
port = settings.REDIS_PORT
db = 0
r = redis.StrictRedis(host, port, db)
return r