rustypaste
A minimal, self-hosted file upload server and pastebin written in Rust. Upload files with a simple curl command and get back a shareable URL.
What You Can Do After Deployment
- Upload files — use
curl -F "[email protected]" -H "Authorization: <AUTH_TOKEN>" https://your-domain
- Paste text — pipe text directly:
echo "hello" | curl -F "file=@-" -H "Authorization: <AUTH_TOKEN>" https://your-domain
- Shorten URLs — use the oneshot or URL endpoint for link shortening
- Share content — every upload returns a unique URL for sharing
- Configure limits — set file size limits, expiration times, and allowed MIME types
Key Features
- File upload via HTTP (curl-friendly)
- Text paste support
- URL shortening
- Configurable expiration (duration-based or one-shot)
- File size limits
- MIME type restrictions
- Authentication via token
- Landing page support
- No database — files stored on disk
License
MIT — GitHub