diff --git a/config-example.toml b/config-example.toml index c9b2ac3..e5d0b15 100644 --- a/config-example.toml +++ b/config-example.toml @@ -38,3 +38,5 @@ debug_log_payloads = true # LFS Garbage Collection settings lfs_keep_versions = 5 # Keep last K versions of each LFS file lfs_auto_gc = true # Automatically delete old LFS objects on commit +# Site identification +site_name = "KohakuHub" # Customizable site name (e.g., "MyCompany Hub") diff --git a/docker-compose.yml b/docker-compose.yml index eb4865f..9b9c098 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,6 +42,10 @@ services: - KOHAKU_HUB_BASE_URL=http://127.0.0.1:28080 # Web UI will proxy requests to hub-api, we use hub-ui url here - KOHAKU_HUB_DB_BACKEND=postgres - KOHAKU_HUB_DATABASE_URL=postgresql://hub:hubpass@postgres:5432/hubdb # Linking to the 'postgres' service + - KOHAKU_HUB_LFS_THRESHOLD_BYTES=1000000 + - KOHAKU_HUB_LFS_KEEP_VERSIONS=5 + - KOHAKU_HUB_LFS_AUTO_GC=true + - KOHAKU_HUB_SITE_NAME=KohakuHub ## SMTP Configuration (Email Verification - Optional) - KOHAKU_HUB_SMTP_ENABLED=false - KOHAKU_HUB_SMTP_HOST=smtp.gmail.com diff --git a/src/kohaku-hub-ui/src/components/repo/RepoViewer.vue b/src/kohaku-hub-ui/src/components/repo/RepoViewer.vue index e6a76ec..dc1d9df 100644 --- a/src/kohaku-hub-ui/src/components/repo/RepoViewer.vue +++ b/src/kohaku-hub-ui/src/components/repo/RepoViewer.vue @@ -294,10 +294,22 @@