e8a4460 Fix error on chunked upload
~martijnbraam pushed to ~martijnbraam/filedropper git
This is yet another file sharing utility, mainly focussed on being able to handle very large uploads and not being a complete security risk.
From the distribution package manager install python3-waitress, this is the only external tool
$ pip3 install -r requirements.txt # or use the OS package manager
$ export DATABASE=/path/to/your/desired/sqlite.db
$ export FLASK_APP=filedropper
$ export SECRET=totallyrandomsecretkeyusedforsecretthings
$ export DATASTORE=/path/to/the/data/directory
$ flask db upgrade
$ flask create-user [username] --admin
$ serve.py run
For running in a systemd distribution:
[Unit]
Description=Filedropper
[Service]
Type=simple
ExecStart=/usr/bin/env DATABASE=/srv/filedropper/app.db DATASTORE=/srv/filedropper/datastore SECRET=hereisthesecret URL_SCHEME=https python3 serve.py run
Restart=on-failure
WorkingDirectory=/srv/filedropper
[Install]
WantedBy=multi-user.target