mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-15 03:04:37 +08:00
add REDIS_URL
This commit is contained in:
@ -40,9 +40,8 @@ def create_app():
|
||||
@app.on_event("startup")
|
||||
async def startup():
|
||||
redis = aioredis.from_url(
|
||||
f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}",
|
||||
db=settings.REDIS_DB,
|
||||
password=settings.REDIS_PASSWORD,
|
||||
settings.REDIS_URL,
|
||||
decode_responses=True,
|
||||
encoding="utf8",
|
||||
)
|
||||
await admin_app.configure(
|
||||
|
Reference in New Issue
Block a user