2022-03-11 16:02:25 -05:00
|
|
|
[config]
|
|
|
|
refresh_rate="1s"
|
|
|
|
|
2021-07-23 15:52:00 -04:00
|
|
|
[server]
|
|
|
|
address="127.0.0.1:8000"
|
|
|
|
#workers=4
|
|
|
|
max_content_length="10MB"
|
|
|
|
upload_path="./upload"
|
2022-03-11 16:35:54 -05:00
|
|
|
timeout="30s"
|
2021-07-23 15:52:00 -04:00
|
|
|
|
|
|
|
[paste]
|
2021-07-27 07:00:50 -04:00
|
|
|
random_url = { enabled = true, type = "petname", words = 2, separator = "-" }
|
|
|
|
#random_url = { enabled = true, type = "alphanumeric", length = 8 }
|
2021-07-23 15:52:00 -04:00
|
|
|
default_extension = "txt"
|
2021-08-09 15:28:33 -04:00
|
|
|
mime_override = [
|
|
|
|
{ mime = "image/jpeg", regex = "^.*\\.jpg$" },
|
|
|
|
{ mime = "image/png", regex = "^.*\\.png$" },
|
|
|
|
{ mime = "image/svg+xml", regex = "^.*\\.svg$" },
|
|
|
|
{ mime = "video/webm", regex = "^.*\\.webm$" },
|
|
|
|
{ mime = "video/x-matroska", regex = "^.*\\.mkv$" },
|
|
|
|
{ mime = "application/octet-stream", regex = "^.*\\.bin$" },
|
|
|
|
{ mime = "text/plain", regex = "^.*\\.(log|txt|diff)$" },
|
|
|
|
]
|
2021-08-09 15:48:51 -04:00
|
|
|
mime_blacklist = [
|
|
|
|
"application/x-dosexec",
|
|
|
|
"application/java-archive",
|
|
|
|
"application/java-vm"
|
|
|
|
]
|
2021-10-12 12:35:06 -04:00
|
|
|
duplicate_files = false
|
2022-03-23 04:38:32 -04:00
|
|
|
delete_expired_files = { enabled = true, interval = "1h" }
|