server stats component

This commit is contained in:
2026-04-16 12:26:43 +02:00
parent cb9414bc43
commit ad29538422
9 changed files with 136 additions and 10 deletions

View File

@ -2,6 +2,9 @@
pub struct ServerConfig {
pub upload_folder: String,
pub db_url: String,
pub upload_storage_limit_soft: u64,
pub upload_storage_limit_hard: u64,
}
#[cfg(feature = "server")]
@ -10,6 +13,10 @@ impl ServerConfig {
Self {
upload_folder: "./test/".to_string(),
db_url: std::env::var("DATABASE_URL").expect("missing DATABASE_URL"),
upload_storage_limit_soft: 1024 * 1024 * 1024 * 200,
upload_storage_limit_hard: 1024 * 1024 * 1024 * 300,
}
}
}