tag | edc28eddbb637e322bc0c22289cb53c143879ccb | |
---|---|---|
tagger | Jess Frazelle <acidburn@microsoft.com> | Tue Sep 25 13:18:28 2018 -0400 |
object | 6816659d0cc897277c3f8b5865d65675584fab3e |
v0.2.4 -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAluqbeQACgkQGPNoXAAi v/N9Bw//RVeU2GbXKTBEBONkGR00E2pTFOFzDElPypGEuG1GqDcO5U6KUH8ZCDEB K49ZOcaViExE20UpE5ZTc/sUon6xNsZ+hLK/psrgl7PNlqATA8TWfhqUk1VkjMKk 18Kni4dVdJXP/NsO7MS3+BMk89htYBPgfWe70jwikFDngNYzreXQdgSaDiFMzA+C hCLp33+YnEwIEIG04foMm6AGYfU3eY4MMfkm0B6xCIU0tfBU3792pbHfDqe+SJOz WLp4yqr7+SD2UfVrcwbaKyGHkp8plzGDdf2EcIqq2RVGOq9njDYrRO2VVLDjqllT Es2Apwa46ijPZ2HN7hAahYyIKzYlJqDsYFzqES6SQH81zLO+ymdliPEQwlFed0pY 7dZ1k2dAFlwUZo9gpaAbJBvSiVToSvliMTnLqSss1cEmStI9ry1I7+UMWSK3dFKu Or50oiCKTc4zN4tQeT0VIJoBbbnjJ50WsCz/eZ3j2+vO47AsfXasSaBVv3ChPx9G XDqmYDSCJidVXQW5DB7LOM2sN5wYkXF29BuBIRoUsuLLQi0sr2nG/Byds2+kj09b f3oMMbjIoAWDMnt294SQ4e3Twa9Ag0Mn2q0ZTFv3gPUnZVr8C1fKcoyn5tAq1hcj LXtcrPsL30NtoyDVy3pay4za1jTRxaMvW1BVWURb8m8Z+nln2bI= =O4Da -----END PGP SIGNATURE-----
commit | 6816659d0cc897277c3f8b5865d65675584fab3e | [log] [tgz] |
---|---|---|
author | Jess Frazelle <acidburn@microsoft.com> | Tue Sep 25 13:18:27 2018 -0400 |
committer | Jess Frazelle <acidburn@microsoft.com> | Tue Sep 25 13:18:27 2018 -0400 |
tree | bbf7d8d156fc8e20641d7e0d2db06c464cb3fe36 | |
parent | 6698b5718dbd766f55ba29e268ebf6aef1f3f08c [diff] |
Bump version to v0.2.4 Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
Go implementation of pastebinit. Host your own pastebin and post things there. Example file I posted here.
Why? You ask.. because pastebin.com has ads (booo) & is fugly as eff.
For installation instructions from binaries please visit the Releases Page.
$ go get github.com/jessfraz/pastebinit
You need to set PASTEBINIT_USERNAME
and PASTEBINIT_PASSWORD
as environment variables, so the client knows how to auth on paste. To change the uri, pass the -b
flag.
Just like the pastebinit you are used to, this client can read from stdin & input. Heres some examples:
# pipe to pastebinit $ docker images | pastebinit -b yoururl.com # pass a file $ pastebinit -b yoururl.com server.go
$ pastebinit -h pastebinit - Command line paste bin. Usage: pastebinit <command> Flags: -b, --uri pastebin base uri (default: https://paste.j3ss.co/) -d, --debug enable debug logging (default: false) -p, --password password (or env var PASTEBINIT_PASSWORD) (default: <none>) -u, --username username (or env var PASTEBINIT_USERNAME) Commands: server Run the server. version Show the version information.
The server can be run in a docker container, via the included dockerfile. You can use my image on the hub: jess/pastebinit or you can build the image yourself via:
$ git clone git@github.com/jessfraz/pastebinit.git $ cd pastebinit $ docker build -t your_name/pastebinit .
To run the image do, you need to pass the PASTEBINIT_USERNAME
and PASTEBINIT_PASSWORD
environment variables to the container. You can also pass the following options as cli flags to the binary in the container, these are:
$ pastebinit server -h Usage: pastebinit server [OPTIONS] Run the server. Flags: --asset-path Path to assets and templates (default: /src/static) -b, --uri pastebin base uri (default: https://paste.j3ss.co/) --cert path to ssl cert (default: <none>) -d, --debug enable debug logging (default: false) --key path to ssl key (default: <none>) -p, --password password (or env var PASTEBINIT_PASSWORD) (default: <none>) --port port for server to run on (default: 8080) -s, --storage directory to store pastes (default: /etc/pastebinit/files) -u, --username username (or env var PASTEBINIT_USERNAME)
Example command to run the container:
# to share the paste volume with your host $ docker run -d \ --name=pastebinit \ --restart=always \ -e PASTEBINIT_USERNAME=your_username \ -e PASTEBINIT_PASSWORD=your_pass \ -v /home/jess/pastes:/src/files \ jess/pastebinit server \ -b https://myserver.com # to not share the paste volume $ docker run -d \ --name=pastebinit \ --restart=always \ -e PASTEBINIT_USERNAME=your_username \ -e PASTEBINIT_PASSWORD=your_pass \ jess/pastebinit server \ -b https://myserver.com # ssl example $ docker run -d --name=pastebinit \ --restart=always \ -e PASTEBINIT_USERNAME=your_username \ -e PASTEBINIT_PASSWORD=your_pass \ -v /path/to/ssl/stuffs:/ssl \ jess/pastebinit server \ -b https://myserver.com --cert=/ssl/cert.crt --key=/ssl/key.key
Then you are all set! Happy pasting!