Rustypaste is a small file upload and pastebin server with URL shortening, optional auth, expiring links, and no database—files live on disk.
Overview
Rustypaste provides HTTP endpoints to upload files, shorten URLs, fetch remote files into storage, and serve content from a single Rust binary. It targets operators who want a lightweight substitute for large hosted paste or file hosts on their own hardware.
Upload flows support random or pet-name paths, MIME detection with overrides and blacklists, forced download query parameters, duplicate suppression, listing and deletion APIs, password-protected files with Argon2id hashing, one-shot links, and configurable expiration with optional automatic cleanup. Basic or bearer authentication can gate uploads and deletes.
Configuration is a TOML file with hot reload; optional HTML landing forms and custom pages are configurable. Packages exist for crates.io, Arch, Alpine, and FreeBSD, plus release binaries. Docker and docker-compose examples map uploads to a host directory and accept tokens via environment variables.
A companion rpaste CLI wraps common curl-style operations. Nginx reverse-proxy examples document body size limits for large uploads.
Key features
- Multipart file uploads
- URL shortening and remote paste
- Expiring and one-shot links
- Password-protected files
- HTTP basic authentication
- No database; filesystem storage
- Docker and compose deployment
- MIME override and blacklist
Use cases
- Self-hosted snippet and file sharing
- IRC-style ephemeral upload links
- Internal team file drops
- Short-lived artifact hosting
- Personal pastebin behind nginx