parent
5f65a171dd
commit
cb933d12dc
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue