style(config): format the config

This commit is contained in:
Orhun Parmaksız 2023-05-13 22:50:39 +03:00
parent 9fcbb1dfb0
commit 4e45b6a20d
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -1,14 +1,14 @@
[config]
refresh_rate="1s"
refresh_rate = "1s"
[server]
address="127.0.0.1:8000"
address = "127.0.0.1:8000"
#workers=4
max_content_length="10MB"
upload_path="./upload"
timeout="30s"
expose_version=false
landing_page="""Submit files via HTTP POST here:
max_content_length = "10MB"
upload_path = "./upload"
timeout = "30s"
expose_version = false
landing_page = """Submit files via HTTP POST here:
curl -F 'file=@example.txt' <server>"
This will return the finished URL.
@ -35,12 +35,12 @@ mime_override = [
{ mime = "video/webm", regex = "^.*\\.webm$" },
{ mime = "video/x-matroska", regex = "^.*\\.mkv$" },
{ mime = "application/octet-stream", regex = "^.*\\.bin$" },
{ mime = "text/plain", regex = "^.*\\.(log|txt|diff)$" },
{ mime = "text/plain", regex = "^.*\\.(log|txt|diff|sh|rs|toml)$" },
]
mime_blacklist = [
"application/x-dosexec",
"application/java-archive",
"application/java-vm"
"application/java-vm",
]
duplicate_files = true
delete_expired_files = { enabled = true, interval = "1h" }