TK-FB(공장관리+신고)와 M-Project(부적합관리)를 3개 독립 시스템으로 분리하기 위한 전체 코드 구조 작성. - SSO 인증 서비스 (bcrypt + pbkdf2 이중 해시 지원) - System 1: 공장관리 (TK-FB 기반, 신고 코드 제거) - System 2: 신고 (TK-FB에서 workIssue 코드 추출) - System 3: 부적합관리 (M-Project 기반) - Gateway 포털 (path-based 라우팅) - 통합 docker-compose.yml 및 배포 스크립트 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
267 lines
12 KiB
Plaintext
267 lines
12 KiB
Plaintext
/Users/hyungiahn/Documents/code/TK-FB-Project/fastapi-bridge/main.py:40: DeprecationWarning:
|
|
on_event is deprecated, use lifespan event handlers instead.
|
|
|
|
Read more about it in the
|
|
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
|
|
|
|
@app.on_event("startup")
|
|
/Users/hyungiahn/Documents/code/TK-FB-Project/fastapi-bridge/main.py:62: DeprecationWarning:
|
|
on_event is deprecated, use lifespan event handlers instead.
|
|
|
|
Read more about it in the
|
|
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
|
|
|
|
@app.on_event("shutdown")
|
|
INFO: Will watch for changes in these directories: ['/Users/hyungiahn/Documents/code/TK-FB-Project/fastapi-bridge']
|
|
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
|
|
INFO: Started reloader process [59893] using WatchFiles
|
|
INFO: Started server process [59960]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO: 127.0.0.1:51845 - "GET / HTTP/1.1" 200 OK
|
|
INFO: 127.0.0.1:51858 - "GET /health HTTP/1.1" 200 OK
|
|
INFO:main:🔗 프록시: GET http://localhost:3005/api/health
|
|
INFO:main:✅ 응답: 200 (82 bytes)
|
|
INFO: 127.0.0.1:51876 - "GET /api/health HTTP/1.1" 200 OK
|
|
INFO:watchfiles.main:144 changes detected
|
|
INFO:watchfiles.main:1 change detected
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [59960]
|
|
INFO: Started server process [60804]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [60804]
|
|
INFO: Started server process [60813]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [60813]
|
|
INFO: Started server process [60819]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [60819]
|
|
INFO: Started server process [60828]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [60828]
|
|
INFO: Started server process [60837]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
INFO: 127.0.0.1:52227 - "HEAD / HTTP/1.1" 405 Method Not Allowed
|
|
INFO: 127.0.0.1:52257 - "GET / HTTP/1.1" 200 OK
|
|
INFO:main:🔗 프록시: GET http://localhost:3005/api/health
|
|
INFO:main:✅ 응답: 200 (82 bytes)
|
|
INFO: 127.0.0.1:52309 - "GET /api/health HTTP/1.1" 200 OK
|
|
INFO: 127.0.0.1:52338 - "GET /login.css HTTP/1.1" 200 OK
|
|
INFO: 127.0.0.1:52380 - "HEAD /logo.png HTTP/1.1" 200 OK
|
|
INFO:watchfiles.main:2 changes detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [60837]
|
|
INFO: Started server process [61912]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'cache.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [61912]
|
|
INFO: Started server process [62616]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'cache.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [62616]
|
|
INFO: Started server process [62618]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'config.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [62618]
|
|
INFO: Started server process [64772]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64772]
|
|
INFO: Started server process [64848]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64848]
|
|
INFO: Started server process [64868]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO:main:💾 캐시: Redis (연결됨)
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64868]
|
|
✅ Redis 연결 성공
|
|
INFO: Started server process [64890]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO:main:💾 캐시: Redis (연결됨)
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64890]
|
|
✅ Redis 연결 성공
|
|
INFO: Started server process [64916]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO:main:💾 캐시: Redis (연결됨)
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64916]
|
|
✅ Redis 연결 성공
|
|
INFO: Started server process [64934]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO:main:💾 캐시: Redis (연결됨)
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64934]
|
|
✅ Redis 연결 성공
|
|
INFO: Started server process [64956]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO:main:💾 캐시: Redis (연결됨)
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64956]
|
|
✅ Redis 연결 성공
|
|
INFO: Started server process [64979]
|
|
INFO: Waiting for application startup.
|
|
INFO:main:🚀 TK FastAPI Bridge v1.0.0 시작됨
|
|
INFO:main:📍 포트: 8000
|
|
INFO:main:🔗 Express.js API: http://localhost:3005
|
|
INFO:main:💾 캐시: Redis (연결됨)
|
|
INFO: Application startup complete.
|
|
INFO:watchfiles.main:1 change detected
|
|
INFO:watchfiles.main:1 change detected
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO:main:✅ FastAPI 브릿지가 정상적으로 종료되었습니다
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [64979]
|
|
✅ Redis 연결 성공
|
|
INFO: Stopping reloader process [59893]
|