From 4e45b6a20d9b1d6f38db3966d1e82a58e731c228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 13 May 2023 22:50:39 +0300 Subject: [PATCH] style(config): format the config --- config.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index a21a040..536e592 100644 --- a/config.toml +++ b/config.toml @@ -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' " 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" }