From cc15eb40f61413c65d3c9872376eec73727a8969 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 23 Apr 2022 14:01:01 +0200 Subject: Sort listing before playout --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index dbbdc6f..9cbd7d1 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,25 @@ that lets them download or view the files you want them to have. ## Installation -TBD +* Install nginx and uwsgi +* Create a directory where cargohold will store the uploaded files +* Set the directory's owner to the user you want uwsgi to run the application under +* Edit `backend/config.py` to match your setup +* Edit `configs/nginx.config` to match your setup + * Note that the `client_max_body_size` will limit the maximum size of a single uploaded file +* Install `configs/nginx.config` to `/etc/nginx/sites-enabled` +* Edit `configs/uwsgi.ini` to match your setup + * Note that the `limit-post` option will limit the maximum size of a single uploaded file +* Install `configs/uwsgi.ini` to `/etc/uwsgi/apps-enabled/cargohold.ini` + +TBD: Extend this. ## Usage TBD ## Interface + +cargohold integrates somewhat tightly with nginx using the X-Accel-Redirect mechanism. +Other httpds may provide a similar mechanism, which will need to be called out to in the +`playout()` routine in `main.py`. -- cgit v1.2.3