From cb933d12dc4920799a63e0ce6141ef96682bcede Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 21 Oct 2023 16:10:29 +1000 Subject: [PATCH] remove max_per_ip config param may be implemented later --- filed/config/filed.toml.example | 5 ----- filed/src/config/types.rs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/filed/config/filed.toml.example b/filed/config/filed.toml.example index 71a7682..da06039 100644 --- a/filed/config/filed.toml.example +++ b/filed/config/filed.toml.example @@ -21,11 +21,6 @@ allow_pass_protection=true # This is shown only if allow_uploads = false # upload_disable_reason="File uploads were disabled because of an ongoing attack." -# How much files can one -# user have uploaded to the server. -# Note that it does not include expired files -max_per_ip=8 - # Timeout for deleting a user uploaded file file_del_timeout=1800 diff --git a/filed/src/config/types.rs b/filed/src/config/types.rs index 9f4965a..a3840b3 100644 --- a/filed/src/config/types.rs +++ b/filed/src/config/types.rs @@ -22,10 +22,6 @@ pub struct FilesPolicy { #[serde(default)] pub upload_disable_reason: Option, - /// Max uploads for IP (doesn't include deleted uploads) - #[serde(default)] - pub max_per_ip: usize, - /// Default time for file to be deleted #[serde(default)] pub file_del_timeout: usize, @@ -46,7 +42,6 @@ impl Default for FilesPolicy { allow_custom_names: true, allow_pass_protection: true, upload_disable_reason: None, - max_per_ip: 8, file_del_timeout: 1800, type_whitelist: None, type_blacklist: None,