update to get favicon from compontent by using the storage
Build and Push Docker Container / build-and-push (push) Successful in 1m36s

This commit is contained in:
2026-02-16 12:02:52 +01:00
parent e8e37e8967
commit 6137121209
4 changed files with 32 additions and 30 deletions
+7 -3
View File
@@ -2,6 +2,8 @@ from my_modules.functions import custom_limit_key, get_my_ip_address, get_local_
from my_modules.app.constens import SECRET_KEY, THE_IP_BOT_MANAGER
from my_modules.AsyncCache import AsyncCache
from my_modules.app.logger import logger
from my_helpers.db.convex.ConvexRuntime import ConvexRuntime
from my_modules.db.ConvexDB import ConvexDB
from quart_session import Session
@@ -64,10 +66,12 @@ LIMITER = Limiter(
strategy='moving-window'
)
convex_runtime = ConvexRuntime(os.getenv("CONVEX_URL"))
@app.before_serving
async def init_convex():
app.convex = ConvexDB(os.getenv("CONVEX_URL"))
await app.convex.connect()
await convex_runtime.start()
app.convex = ConvexDB(runtime=convex_runtime)
THE_IP_BOT_MANAGER.add_always_allowed_ip('127.0.0.1')
THE_IP_BOT_MANAGER.add_always_allowed_ip(await get_my_ip_address())
@@ -81,5 +85,5 @@ async def init_convex():
@app.after_serving
async def close_convex():
if app.convex:
await app.convex.close()
await convex_runtime.stop()
await logger.shutdown()