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"
|
2022-10-04 05:38:37 -04:00
|
|
|
expose_version=true
|
2022-10-03 17:27:35 -04:00
|
|
|
landing_page="""Submit files via HTTP POST here:
|
|
|
|
curl -F 'file=@example.txt' <server>"
|
|
|
|
This will return the finished URL.
|
|
|
|
|
|
|
|
The server administrator might remove any pastes that they do not personally
|
|
|
|
want to host.
|
|
|
|
|
|
|
|
If you are the server administrator and want to change this page, just go
|
|
|
|
into your config file and change it! If you change the expiry time, it is
|
|
|
|
recommended that you do.
|
|
|
|
|
|
|
|
Check out the GitHub repository at https://github.com/orhun/rustypaste
|
|
|
|
|
|
|
|
By default, pastes expire every hour. The server admin may or may not have
|
|
|
|
changed this."""
|
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"
|
|
|
|
]
|
2022-06-24 19:57:03 -04:00
|
|
|
duplicate_files = true
|
2022-03-23 04:38:32 -04:00
|
|
|
delete_expired_files = { enabled = true, interval = "1h" }
|