mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
style(config): format the default config
This commit is contained in:
parent
4a4301ee72
commit
ab5e153a4e
1 changed files with 10 additions and 10 deletions
20
config.toml
20
config.toml
|
@ -36,18 +36,18 @@ random_url = { enabled = true, type = "petname", words = 2, separator = "-" }
|
||||||
#random_url = { enabled = true, type = "alphanumeric", length = 8 }
|
#random_url = { enabled = true, type = "alphanumeric", length = 8 }
|
||||||
default_extension = "txt"
|
default_extension = "txt"
|
||||||
mime_override = [
|
mime_override = [
|
||||||
{ mime = "image/jpeg", regex = "^.*\\.jpg$" },
|
{ mime = "image/jpeg", regex = "^.*\\.jpg$" },
|
||||||
{ mime = "image/png", regex = "^.*\\.png$" },
|
{ mime = "image/png", regex = "^.*\\.png$" },
|
||||||
{ mime = "image/svg+xml", regex = "^.*\\.svg$" },
|
{ mime = "image/svg+xml", regex = "^.*\\.svg$" },
|
||||||
{ mime = "video/webm", regex = "^.*\\.webm$" },
|
{ mime = "video/webm", regex = "^.*\\.webm$" },
|
||||||
{ mime = "video/x-matroska", regex = "^.*\\.mkv$" },
|
{ mime = "video/x-matroska", regex = "^.*\\.mkv$" },
|
||||||
{ mime = "application/octet-stream", regex = "^.*\\.bin$" },
|
{ mime = "application/octet-stream", regex = "^.*\\.bin$" },
|
||||||
{ mime = "text/plain", regex = "^.*\\.(log|txt|diff|sh|rs|toml)$" },
|
{ mime = "text/plain", regex = "^.*\\.(log|txt|diff|sh|rs|toml)$" },
|
||||||
]
|
]
|
||||||
mime_blacklist = [
|
mime_blacklist = [
|
||||||
"application/x-dosexec",
|
"application/x-dosexec",
|
||||||
"application/java-archive",
|
"application/java-archive",
|
||||||
"application/java-vm",
|
"application/java-vm",
|
||||||
]
|
]
|
||||||
duplicate_files = true
|
duplicate_files = true
|
||||||
# default_expiry = "1h"
|
# default_expiry = "1h"
|
||||||
|
|
Loading…
Reference in a new issue