remove max_per_ip config param

may be implemented later
This commit is contained in:
blek 2023-10-21 16:10:29 +10:00
parent 5f65a171dd
commit cb933d12dc
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 0 additions and 10 deletions

View File

@ -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

View File

@ -22,10 +22,6 @@ pub struct FilesPolicy {
#[serde(default)]
pub upload_disable_reason: Option<String>,
/// 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,