paste - enable content expiration
This commit is contained in:
@@ -15,8 +15,8 @@ services:
|
||||
environment:
|
||||
- RUST_LOG=debug
|
||||
volumes:
|
||||
- ./paste/data/:/app/upload
|
||||
- ./paste/config.toml:/app/config.toml
|
||||
- ./data/:/app/upload
|
||||
- ./config.toml:/app/config.toml
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
|
||||
@@ -26,13 +26,14 @@ text = """
|
||||
├┬┘└─┐├┴┐││ │ ├─┘├─┤└─┐ │ ├┤
|
||||
┴└─└─┘┴ ┴┴└─┘ ┴ ┴ ┴└─┘ ┴ └─┘
|
||||
|
||||
Submit files via HTTP POST here:
|
||||
Uploaded content expires after 24 hours and may be removed without warning.
|
||||
|
||||
https://raw.githubusercontent.com/rskntroot/oxpasta/refs/heads/main/oxpasta.sh
|
||||
|
||||
Submit files via oxpasta script or via HTTP POST:
|
||||
curl -F 'file=@example.txt' paste.rskio.com
|
||||
This will return the URL of the uploaded file.
|
||||
|
||||
Content expires 24 hours.
|
||||
|
||||
The content may be removed without warning.
|
||||
"""
|
||||
#file = "index.txt"
|
||||
content_type = "text/plain; charset=utf-8"
|
||||
@@ -57,6 +58,6 @@ mime_blacklist = [
|
||||
"application/java-archive",
|
||||
"application/java-vm",
|
||||
]
|
||||
duplicate_files = true
|
||||
# default_expiry = "1h"
|
||||
delete_expired_files = { enabled = true, interval = "24h" }
|
||||
duplicate_files = false
|
||||
default_expiry = "24h"
|
||||
delete_expired_files = { enabled = true, interval = "1h" }
|
||||
|
||||
Reference in New Issue
Block a user