feat(P2): stock/music-lab/insta-lab/realestate-lab access_log 적용 + AGENT_CONTAINER_MAP 4개 매핑

This commit is contained in:
2026-05-28 08:38:36 +09:00
parent cfbb3c24b8
commit 378f5210d4
6 changed files with 41 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ from contextlib import asynccontextmanager
from fastapi import BackgroundTasks, FastAPI, Query, HTTPException
from fastapi.middleware.cors import CORSMiddleware
from apscheduler.schedulers.background import BackgroundScheduler
from _shared.access_log import install as install_access_log
from .db import (
init_db, get_announcements, get_announcement, create_announcement,
@@ -68,6 +69,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan)
install_access_log(app)
_cors_origins = os.getenv("CORS_ALLOW_ORIGINS", "http://localhost:3007,http://localhost:8080").split(",")
app.add_middleware(