back

pub / pastesrv

Paste service setup for paste.jayvii.de
git clone https://src.jayvii.de/pub/pastesrv.git
Log | Files | Exports | Refs | README | RSS

Activity: Jun, 2024 - Jun, 2024

Less More

pastesrv

Please send patches or remarks to jayvii[AT]posteo[DOT]de

Super simple selfhosted paste server inspired / copy-cat’ed from: codemadness

Setup

Let’s assume you are running Debian on your server, OpenSSH is already setup and you are using Apache as your webserver with “paste.example.com”.

Create a new user for the paste service on your server:

Optionally, set a password for the “paste” user. Or, better yet use an SSH-key. See: Arch Wiki: SSH keys

Copy the apache-config and edit it accordingly

Copy the index and 404 page to the web-root:

The service is ready now. Next, setup your client accordingly. The codemadness blog has a nifty bash-function, which I adapted a little bit. You can also find it in this repository as pastesrv.sh:

The function reads from stdin, so whatever you pipe to it, will be send to the paste-service:


Clone this repository via:
git clone https://src.jayvii.de/pub/pastesrv.git