2023-07-27 23:26:27 +00:00
|
|
|
===========
|
2023-07-28 06:19:20 +00:00
|
|
|
CodeSmidgen
|
2023-07-27 23:26:27 +00:00
|
|
|
===========
|
|
|
|
|
2023-07-28 06:19:20 +00:00
|
|
|
CodeSmidgen is a simple "pastebin" written in Python using Quart, SQLAlchemy, Pygments and a few other libraries.
|
2023-07-27 23:26:27 +00:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
2023-07-28 06:19:20 +00:00
|
|
|
The easiest way to install CodeSmidgen is via Docker and Docker Compose. Here's an example config:
|
2023-07-27 23:26:27 +00:00
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:15
|
|
|
|
env:
|
2023-07-28 06:19:20 +00:00
|
|
|
- POSTGRES_USER=codesmidgen
|
|
|
|
- POSTGRES_DB=codesmidgen
|
|
|
|
- POSTGRES_PASSWORD=codesmidgen
|
2023-07-27 23:26:27 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- "./data/postgres:/var/lib/postgresql/data"
|
|
|
|
app:
|
2023-07-28 06:19:20 +00:00
|
|
|
image: git.snyman.info/raoul/codesmidgen:latest
|
2023-07-27 23:26:27 +00:00
|
|
|
env:
|
2023-07-28 20:03:31 +00:00
|
|
|
- SMIDGEN_SECRET_KEY=yoursecrethere
|
|
|
|
- SQLALCHEMY_DATABASE_URL=postgres://codesmidgen:codesmidgen@postgres/codesmidgen
|
2023-07-27 23:26:27 +00:00
|
|
|
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.
|