zioinfo-mail/manager/backend/main.py
DESKTOP-TKLFCPR\ython 11c670f2a0 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

31 lines
998 B
Python

"""GUARDiA Manager 경량 백엔드 API — 포트 8002"""
import os
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from dotenv import load_dotenv
load_dotenv()
app = FastAPI(title="GUARDiA Manager API", version="1.0.0")
app.add_middleware(
CORSMiddleware,
allow_origins=os.environ.get(
"MANAGER_ALLOWED_ORIGINS",
"http://localhost:5175,http://localhost:5173,http://zioinfo.co.kr:8090"
).split(","),
allow_methods=["*"],
allow_headers=["*"],
allow_credentials=True,
)
from routers import system, deploy, config, llm
app.include_router(system.router, prefix="/api/system", tags=["system"])
app.include_router(deploy.router, prefix="/api/deploy", tags=["deploy"])
app.include_router(config.router, prefix="/api/config", tags=["config"])
app.include_router(llm.router, prefix="/api/llm", tags=["llm"])
@app.get("/health")
async def health():
return {"status": "ok", "service": "guardia-manager", "port": 8002}