Buckler/README.md

26 lines
852 B
Markdown
Raw Normal View History

2019-09-14 18:36:23 -04:00
# Buckler
A security shield for protecting a number of small web applications.
## Requirements
Python 3.7+
PostgreSQL 11.5+
2020-04-09 07:58:38 -04:00
Debian System packages: `build-essential python3-dev`
2019-09-24 19:34:20 -04:00
Python packages: `wheel gunicorn aiohttp aiohttp_jinja2 asyncpg passlib argon2_cffi uvloop fido2`
2019-09-14 18:36:23 -04:00
## Install
2019-09-15 19:40:58 -04:00
```
$ psql
postgres=# CREATE DATABASE "buckler";
postgres=# CREATE USER "buckler" WITH PASSWORD 'password';
postgres=# ALTER ROLE "buckler" SET client_encoding TO 'utf8';
postgres=# ALTER ROLE "buckler" SET default_transaction_isolation TO 'read committed';
postgres=# ALTER ROLE "buckler" SET timezone TO 'UTC';
postgres=# GRANT ALL PRIVILEGES ON DATABASE "buckler" TO "buckler";
postgres=# \q
```
2019-09-14 18:36:23 -04:00
1. Get on the floor
2. Walk the dinosaur
## Usage
2019-10-01 09:59:08 -04:00
`gunicorn buckler:init_app --bind localhost:5400 --worker-class aiohttp.GunicornWebWorker`