mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
44 lines
1.4 KiB
TOML
44 lines
1.4 KiB
TOML
[config]
|
|
refresh_rate = "1s"
|
|
|
|
[server]
|
|
address="127.0.0.1:8020"
|
|
#url = "https://rustypaste.shuttleapp.rs"
|
|
#workers=4
|
|
max_content_length = "10MB"
|
|
upload_path = "./upload"
|
|
timeout = "30s"
|
|
expose_version = false
|
|
style="monokai"
|
|
landing_page = """
|
|
┬─┐┬ ┬┌─┐┌┬┐┬ ┬┌─┐┌─┐┌─┐┌┬┐┌─┐
|
|
├┬┘│ │└─┐ │ └┬┘├─┘├─┤└─┐ │ ├┤
|
|
┴└─└─┘└─┘ ┴ ┴ ┴ ┴ ┴└─┘ ┴ └─┘
|
|
"""
|
|
|
|
[paste]
|
|
random_url = { enabled = true, type = "petname", words = 2, separator = "-" }
|
|
#random_url = { enabled = true, type = "alphanumeric", length = 8 }
|
|
default_extension = "txt"
|
|
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|sh|rs|toml)$" },
|
|
]
|
|
mime_blacklist = [
|
|
"application/x-dosexec",
|
|
"application/java-archive",
|
|
"application/java-vm",
|
|
]
|
|
|
|
duplicate_files = true
|
|
# default_expiry = "1h"
|
|
delete_expired_files = { enabled = true, interval = "1h" }
|
|
|
|
[paste.highlight_override]
|
|
# For example, to force markdown rather than using highlight.js's autodetection
|
|
#"text/markdown" = "markdown"
|