Skip to content

firnsy/mpaste

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
etc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mpaste

Lean, mean and clean, pastebinnin' machine.

Dependencies

Fedora/Korora

$ dnf install perl-Mojolicious perl-DBD-SQLite

Quick Start

$ ./mpaste daemon

This will start up the pastebin server listening at localhost on port 3000.

$ MPASTE_PASTE_DIR=/var/tmp/mpaste ./mpaste daemon --listen="http://*:5000"

Start the pastebin server listening globally on port 5000 and storing pastes in /var/tmp/mpaste.

Environment Variables

The following environment variables allow you to modify the default behaviour of mpaste:

  • MPASTE_HYPNOTOAD_LISTEN - Set listen location for use with mojolicious hypnotoad. Multiple values can be delimited with a , or space. Defaults to http://*:8000.
  • MPASTE_HOLD_TIME - Set how long in seconds, a paste will stick around for. Defaults to 604800 (30 days).
  • MPASTE_NO_HISTORY - Set to hide paste history. Defaults to show available paste history.
  • MPASTE_PASTE_DIR - Set the directory where pastes and db are stored. Defaults to /tmp/mpaste.
  • MPASTE_REAP_TIME - Set the frequency, in seconds, to check for expired pastes. Defaults to 300 (5 minutes).
  • MPASTE_SECRETS - Set the secret passphrases used for signed cookies. Multiple values can be delimited with a , or space. Defaults to mpaste (ie. not very secure).
  • MPASTE_UPLOAD_LIMIT - Set the maximum upload limit in bytes. Defaults to 10485760 (10MB).

License

AGPLv3

About

A lean, mean and clean, pastebinnin' machine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published