Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

PythonistaGuild/MystBin

Repository files navigation

MystBin

Archival

This project has been archived in favour of pastey.gg. Please use that tool instead, as this one will no longer receive updates. All data from our public instance(s) of mystbin has been migrated to pastey with the same paste ids, passwords and metadata. They can be accessed in the same manner: https://<mystbin url>/:id -> https://pastey.gg/:id


Easily share code and text.

Website

API Documentation

Install on VSCode

Running without Docker

Requirements:

  • Postgres

Setup:

  • Clone
  • Copy config.template.toml into config.toml
  • Set Database connection DSN.
  • Optionally set URLs to a running Redis Instance.
  • ! If you haven't already: Create a Database in postgres (Default mystbin)
  • Install dependencies (Preferably to a venv): pip install -Ur requirements.txt
  • Optionally in core/server.py set ignore_localhost= to False in the RateLimit Middleware for testing.
  • Run: python launcher.py

Running with Docker

Requirements

  • Docker
  • Docker Compose

Setup:

  • Clone
  • Copy config.template.toml into config.toml
    • The default config for database (and redis) should work Out of Box.
    • Ensure you change the host key to 0.0.0.0 from localhost
  • Copy .env.example into .env
    • The default config should work Out of Box
    • The database container doesn't expose connections outside of the network, but for added security edit .env and change the password.
  • Optionally in core/server.py set ignore_localhost= to False in the RateLimit Middleware for testing.
  • Run docker compose up -d to start the services.
    • If you want to use redis for session/limit handling, run with the redis profile: docker compose --profile redis up -d

    • The redis container doesn't expose connections outside of the network, but for added security edit redis.conf and change the password.

    • Backing up the database to the host file system is opt in. You can use the backup profile with docker-compose to spin up the sidecar container for performing backups.