refactor: 설정 중앙화 및 FastAPI lifespan 적용
- 모든 IP, 경로, 포트 설정을 으로 이동하여 중앙 관리 - 하드코딩된 값을 제거하고 를 통해 설정을 동적으로 로드 - FastAPI의 구식 를 최신 이벤트 핸들러로 교체 - 코드의 유지보수성 및 확장성 향상
This commit is contained in:
@@ -24,5 +24,19 @@
|
||||
"html_template": "modern",
|
||||
"include_toc": true,
|
||||
"include_summary": true
|
||||
},
|
||||
"network": {
|
||||
"mac_mini_ip": "192.168.1.122",
|
||||
"nas_ip": "192.168.1.227",
|
||||
"server_port": 8080
|
||||
},
|
||||
"paths": {
|
||||
"nas_mount_point": "/Volumes/DS1525+",
|
||||
"document_upload_base": "Document-upload",
|
||||
"originals": "originals",
|
||||
"translated": "translated",
|
||||
"static_hosting": "static-hosting",
|
||||
"metadata": "metadata",
|
||||
"local_work_path": "~/Scripts/nllb-translation-system"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user