rustypaste-pretty/fixtures/test-server-mime-override/config.toml
2022-05-21 19:12:09 +03:00

13 lines
359 B
TOML

[server]
address="127.0.0.1:8000"
max_content_length="10MB"
upload_path="./upload"
[paste]
random_url = { enabled = true, type = "petname", words = 2, separator = "-" }
default_extension = "txt"
duplicate_files = true
mime_override = [
{ mime = "application/x-shockwave-flash", regex = "^.*\\.txt$" },
{ mime = "image/gif", regex = "^.*\\.tar$" },
]