Skip to content

ronykax/openbin

Repository files navigation

Openbin

A simple Pastebin API written in Python using FastAPI.

Method Path Description
GET /ping Health check
POST / Create a new paste
GET /[id] Read a paste
PUT /[id] Update a paste
DELETE /[id] Delete a paste
GET / List pastes (supports pagination, search, filters)

Docker Setup

  • Create two files: one for the database and one for environment variables (e.g. openbin.db and .env).
  • Populate the .env file with the following variables:
OPENBIN_SECRET=abc123
OPENBIN_MAX_SIZE=1048576
  • Start the container:
docker run -p 8000:8000 -v /path/to/openbin.db:/app/db --env-file /path/to/openbin.env -d rkax/openbin-core

Running into issues or have ideas for further development? Let me know by creating an issue.

About

A simple 🗑️ pastebin API.

Resources

Stars

Watchers

Forks

Releases

No releases published