Apache 리버스 프록시로 /plagiarism 같은 sub-path에 배포 가능하도록: - config.Settings.root_path 추가 (.env의 ROOT_PATH) - FastAPI app(root_path=...) + uvicorn run(root_path=..., proxy_headers=True, forwarded_allow_ips="*") - index.html의 모든 절대경로(/v1/..., /docs, /openapi.json)를 상대경로로 변경 - .env / .env.example 에 ROOT_PATH 추가 URL 직접 노출(localhost:8000)이든 sub-path(/plagiarism)든 모두 동작. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| config.py | ||