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]
|
||||
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" }
|
||||
|
|
Loading…
Reference in a new issue