docs: start work on default development configuration

This commit is contained in:
Paul Makles
2024-09-09 12:49:38 +01:00
parent 2433fa661a
commit 0bbb9e7072
10 changed files with 233 additions and 6 deletions

View File

@@ -90,6 +90,14 @@ max_concurrent_connections = 50
encryption_key = "qcuMA+ssxhMyKaNAKBGFfryfFtUH8NDlamQyDwGW6fU="
# Quality used for lossy WebP previews (set to 100 for lossless)
webp_quality = 80.0
# Mime types that cannot be uploaded or served
#
# Example for Windows executables and Android installation files:
# ["application/vnd.microsoft.portable-executable", "application/vnd.android.package-archive"]
blocked_mime_types = []
# ClamAV service
# hostname:port
clamd_host = ""
[files.limit]
# Minimum image resolution

View File

@@ -146,6 +146,9 @@ pub struct FilesS3 {
pub struct Files {
pub encryption_key: String,
pub webp_quality: f32,
pub blocked_mime_types: Vec<String>,
pub clamd_host: String,
pub limit: FilesLimit,
pub preview: HashMap<String, [usize; 2]>,
pub s3: FilesS3,