mirror of https://github.com/zer0bin-dev/zer0bin
1d9f167745 | ||
---|---|---|
.github/ISSUE_TEMPLATE | ||
backend | ||
frontend | ||
.gitignore | ||
LICENSE | ||
README.md | ||
config.example.json | ||
example.nginx | ||
schema.sql | ||
zer0bin.svg |
README.md
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
git clone https://github.com/Domterion/zer0bin && cd zer0bin
cp config.example.json config.json
and edit as appropriatecp 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
psql -d postgres
CREATE DATABSE zer0bin;
and\c zer0bin
- Paste contents of
schema.sql
\q
cd backend
cargo build --release
./target/release/backend
, preferably in atmux
session or with& disown