Simple pastebin service with convenient api and CLI.
Deploy this app to RackNerd for $0.99/mo only!
pastebin is a self-hosted pastebin web app that lets you create and share "ephemeral" data between devices and users. There is a configurable expiry (TTL) afterwhich the paste expires and is purged. There is also a handy CLI for interacting with the service in a easy way or you can also use curl!
```#!bash $ go get git.mills.io/prologic/pastebin/...
## Usage
Run pastebin:
```#!bash
$ pastebin
Create a paste:
```#!bash $ echo "Hello World" | pb http://localhost:8000/92sHUeGPfoFctazBxdEhae
Or use the Web UI: http://localhost:8000/
Or curl:
```#bash
$ echo "Hello World" | curl -q -L --form blob='<-' -o - http://localhost:8000/
...
There is also an included command line utility for convenience:
echo hello | pb
$ ./pastebin --help
...
-expiry duration
expiry time for pastes (default 5m0s)
-fqdn string
FQDN for public access (default "localhost")
## Configuration
When running the `pastebin` server there are a few default options you might
want to tweak:
$ cat ~/.pastebin.conf
url=https://paste.mydomain.com/
Setting a custom `-expiry` lets you change when pastes are automatically
expired (*the purge time is 2x this value*). The ``-fqdn` option is used as
a namespace for generating the UUID(s) for pastes, change this to be your
domain name.
The command-line utility by default talk to http://localhost:8000 which can be
changed via the `-url` option or by creating a `$HOME/.pastebin.conf`
configuration file with contents similar to:
MIT
Please login to review this project.
No reviews for this project yet.
Lightweight pastebin (and url shortener) built using flask.
Lightweight, minimal and fast pastebin with an SQLite backe…
Very simple (to deploy and to use) secret message service u…
Comments (0)
Please login to join the discussion on this project.