A pastebim written in Nim.
making a paste is a POST request to either the field or file of a form, using
the plugname
you specify in config.toml
as a key. For example, both of the
following should work:
curl -F [email protected] http://your.server/
or
echo "๐ธ" | curl -F "f=<-" http://your.server
to get pastes back, it's easy:
curl "http://your.server/plug
First, modify config.toml to your liking.
then, build the binary:
nimble build
then build the docker image:
docker build -t pastebim .
run it with docker-compose
docker-compose up -d
then probably put that behind nginx or somethin.