add lfs multipart setting into config

This commit is contained in:
Kohaku-Blueleaf
2025-10-21 21:56:52 +08:00
parent 8ac885f516
commit a4743c6133
3 changed files with 10 additions and 0 deletions

View File

@@ -297,6 +297,8 @@ def generate_hub_api_service(config: dict) -> str:
## ===== Application Configuration =====
- KOHAKU_HUB_SITE_NAME=KohakuHub
- KOHAKU_HUB_LFS_THRESHOLD_BYTES=1000000
- KOHAKU_HUB_LFS_MULTIPART_THRESHOLD_BYTES=100_000_000 # 100MB - use multipart for files larger than this
- KOHAKU_HUB_LFS_MULTIPART_CHUNK_SIZE_BYTES=50_000_000 # 50MB - size of each part (min 5MB except last)
- KOHAKU_HUB_LFS_KEEP_VERSIONS=5
- KOHAKU_HUB_LFS_AUTO_GC=true
- KOHAKU_HUB_AUTO_MIGRATE=true # Auto-confirm database migrations (required for Docker)