mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
style(config): format the config
This commit is contained in:
parent
9fcbb1dfb0
commit
4e45b6a20d
1 changed files with 9 additions and 9 deletions
18
config.toml
18
config.toml
|
@ -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" }
|
||||||
|
|
Loading…
Reference in a new issue