server stats component
This commit is contained in:
@ -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,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user