Rustypaste

A minimal self-hosted file upload and pastebin service for sharing text and files via URLs.

Rustypaste screenshot 1

Rustypaste is an open-source, self-hosted application that provides a minimal file upload and pastebin service. It allows users to share text and files via URLs, supporting both direct file uploads and the creation of short links. The software is deployed as a server and can be interacted with via a web browser, curl, or various third-party CLI and GUI clients. It is distributed as a single binary and can also be run as a Docker container.

The application is designed for simplicity and speed, allowing users to quickly push content to a server and retrieve a shareable link. It supports various methods of interaction, including the use of a custom HTML form for uploads or direct API calls via curl. The server can be configured to handle specific file types or restrict certain uploads to maintain security and organization on the host machine.

Key features

  • File uploading and URL shortening
  • Support for expiring links with optional auto-deletion
  • One-shot links that can be viewed only once
  • Random filename generation using pet names or alphanumeric strings
  • Basic HTTP authentication for secure uploads
  • MIME type guessing with support for blacklisting and overrides
  • Ability to paste files directly from a remote URL
  • Custom landing page configuration

Built with Rust, the application operates without a database, using the local filesystem for storage. This architecture simplifies deployment and backup processes. It supports hot reloading of its configuration file, meaning changes to settings can be applied without restarting the server. For administrative purposes, it provides a JSON endpoint for listing uploaded files, provided the appropriate authentication tokens are configured. Users can force files to download by appending a specific query parameter to the URL, and the server serves text-like types as plaintext to prevent script execution.

Rustypaste is designed for users who require a lightweight, database-free utility for temporary file and text sharing.

Last Modified
Software TypeWeb App / Server
Platform
Last Activity17 days ago
Repository Age5 years
LicenseMIT
Open Source Alternative to
Open Source Software.io

Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.