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] [config]
refresh_rate="1s" refresh_rate = "1s"
[server] [server]
address="127.0.0.1:8000" address = "127.0.0.1:8000"
#workers=4 #workers=4
max_content_length="10MB" max_content_length = "10MB"
upload_path="./upload" upload_path = "./upload"
timeout="30s" timeout = "30s"
expose_version=false expose_version = false
landing_page="""Submit files via HTTP POST here: landing_page = """Submit files via HTTP POST here:
curl -F 'file=@example.txt' <server>" curl -F 'file=@example.txt' <server>"
This will return the finished URL. This will return the finished URL.
@ -35,12 +35,12 @@ mime_override = [
{ 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)$" }, { 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
delete_expired_files = { enabled = true, interval = "1h" } delete_expired_files = { enabled = true, interval = "1h" }