CodeSmidgen is a simple paste bin written in Python. https://smidgen.snyman.info
Go to file
raoul db16d9f57d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
Merge pull request 'Add license and link on about page' (#15) from add-url-to-about into master
Reviewed-on: #15
2023-07-30 23:42:50 +00:00
codesmidgen Add license and link on about page 2023-07-30 16:40:35 -07:00
tests Rename to CodeSmidgen 2023-07-27 23:15:28 -07:00
.flake8 Migrate to Quart 2023-07-26 17:43:28 -07:00
.gitignore Rename to CodeSmidgen 2023-07-27 23:15:28 -07:00
.woodpecker.yaml Fix a image tag 2023-07-29 14:51:54 -07:00
codesmidgen.example.cfg Rename to CodeSmidgen 2023-07-27 23:15:28 -07:00
Dockerfile.nightly Force hypercorn to bind to 0.0.0.0:8000 2023-07-29 22:30:56 -07:00
Dockerfile.release Force hypercorn to bind to 0.0.0.0:8000 2023-07-29 22:30:56 -07:00
LICENSE.txt Add license and link on about page 2023-07-30 16:40:35 -07:00
pyproject.toml Rename to CodeSmidgen 2023-07-27 23:15:28 -07:00
README.rst Fix an issue with hypercorn not finding the application in the docker image; correct the README; fix a co-routine that wasn't being awaited 2023-07-29 21:58:59 -07:00

CodeSmidgen

CodeSmidgen is a simple "pastebin" written in Python using Quart, SQLAlchemy, Pygments and a few other libraries.

Installation

The easiest way to install CodeSmidgen is via Docker and Docker Compose. Here's an example config:

version: '3'
services:
  postgres:
    image: postgres:15
    env:
      - POSTGRES_USER=codesmidgen
      - POSTGRES_DB=codesmidgen
      - POSTGRES_PASSWORD=codesmidgen
    restart: unless-stopped
    volumes:
      - "./data/postgres:/var/lib/postgresql/data"
  app:
    image: git.snyman.info/raoul/codesmidgen:latest
    env:
      - SMIDGEN_SECRET_KEY=yoursecrethere
      - SQLALCHEMY_DATABASE_URI=postgresql://codesmidgen:codesmidgen@postgres/codesmidgen
    restart: unless-stopped
    ports:
      - "127.0.0.1:8000:8000"

Once you have that up and running, you can set up NGINX or another reverse proxy to port 8000 on 127.0.0.1.