Skip to content
/ bin Public
forked from w4/bin

Custom implementation of w4's bin.

License

0BSD, WTFPL licenses found

Licenses found

0BSD
LICENSE-0BSD
WTFPL
LICENSE-WTFPL
Notifications You must be signed in to change notification settings

Travus/bin

 
 

Repository files navigation

bin

a paste bin.

This is a fork of w4's bin project.
The fork changes 2 aspects of the original:

1. Paste IDs

This version of bin uses a 12 character long randomly generated string of upper or lower case letters. The letters I, L and O are excluded from IDs since they are easily confused for other symbols. This is simply for my own preference, I like the look of the URLs better this way.

2. Paste storage

This version saves pastes to disk, in order for them to persist even if the service restarts. The --paste-dir argument can be used to define the directory in which the pastes are stored. In the provided docker image the directory /srv/pastes is used, and should probably be volume mounted to true persistence. Note that the user that runs bin now has the user ID 1000, so that it is easy to give correct ownership to the mounted directory.

Since pastes now save to disk, the --buffer-size argument has been removed. If you still want to remove old pastes as new pastes are created, use a cron job or similar to purge old files.

For more information, see w4's repository.

About

Custom implementation of w4's bin.

Resources

License

0BSD, WTFPL licenses found

Licenses found

0BSD
LICENSE-0BSD
WTFPL
LICENSE-WTFPL

Stars

Watchers

Forks

Languages

  • Rust 75.3%
  • HTML 22.2%
  • Dockerfile 2.5%