Go to file
Kainoa Kanter 1d9f167745
Delete prism-live.js
2022-02-28 20:17:45 -08:00
.github/ISSUE_TEMPLATE Create 03_public_instance.md 2022-02-28 18:06:53 -08:00
backend better print on err 2022-02-28 17:45:36 -05:00
frontend Delete prism-live.js 2022-02-28 20:17:45 -08:00
.gitignore first 2022-02-28 16:10:02 -05:00
LICENSE first 2022-02-28 16:10:02 -05:00
README.md Revert "move some stuff in readme" 2022-02-28 20:16:44 -08:00
config.example.json e 2022-02-28 18:12:18 -05:00
example.nginx Update example.nginx 2022-02-28 16:48:20 -08:00
schema.sql compiled size optimizations 2022-02-28 17:09:16 -05:00
zer0bin.svg Update zer0bin.svg 2022-02-28 18:48:23 -08:00

README.md

just a place to paste

Stargazers Issues


API

[GET] /p/:id - Get a paste

[POST] /p/n - Post a new paste

License

MIT

Public instances

Submit your public instance here!

Website Country Ratelimits Expiration Version
zer0b.in (not up yet) ? N/A 7 days non-existant
stepbro.voring.me 🇺🇸 N/A ∞ days v0.0.1

Instructions

Requirements

  • Rust >= 1.58.0
  • Postgresql >= 12.0
  • Nginx >= 1.18.0
  • *nix OS

Steps

  1. git clone https://github.com/Domterion/zer0bin && cd zer0bin
  2. cp config.example.json config.json and edit as appropriate
  3. cp example.nginx /etc/nginx/sites-avaliable/yoursite.tld, edit as appropriate, sudo cp /etc/nginx/sites-avaliable/yoursite.tld /etc/nginx/sites-enabled/yoursite.tld && systemctl nginx restart
  4. psql -d postgres
  5. CREATE DATABSE zer0bin; and \c zer0bin
  6. Paste contents of schema.sql
  7. \q
  8. cd backend
  9. cargo build --release
  10. ./target/release/backend, preferably in a tmux session or with & disown