A file hosting service.
Go to file
2019-11-06 13:08:55 -05:00
static switching tabs clears previous tab input 2019-11-06 13:08:55 -05:00
templates convert to tabs 2019-11-01 12:25:59 -04:00
.gitignore first commit 2019-10-01 23:06:51 -04:00
buckler_aiohttp.py bug fix 2019-10-23 13:06:50 -04:00
config.py.template first commit 2019-10-01 23:06:51 -04:00
LICENSE first commit 2019-10-01 23:06:51 -04:00
migrate_filehost.py migrate old filehost to new saddle 2019-10-06 19:25:43 -04:00
README.md upload from url 2019-10-06 17:01:46 -04:00
saddle.py typo 2019-10-09 22:15:46 -04:00
saddle.sql expiration dates work 2019-10-02 19:47:27 -04:00

Saddle

A file hosting service similar to Pomf and Uguu but without the public nature.

Requirements

Python 3.7+
PostgreSQL 11.5+
Python packages: wheel gunicorn aiohttp aiohttp_jinja2 asyncpg uvloop requests

Install

$ psql
postgres=# CREATE DATABASE "saddle";
postgres=# CREATE USER "saddle" WITH PASSWORD 'password';
postgres=# ALTER ROLE "saddle" SET client_encoding TO 'utf8';
postgres=# ALTER ROLE "saddle" SET default_transaction_isolation TO 'read committed';
postgres=# ALTER ROLE "saddle" SET timezone TO 'UTC';
postgres=# GRANT ALL PRIVILEGES ON DATABASE "saddle" TO "saddle";
postgres=# \q
  1. Get on the floor
  2. Walk the dinosaur

Usage

gunicorn saddle:init_app --bind localhost:5000 --worker-class aiohttp.GunicornWebWorker