|Leo VIALLON-GALINIER 862a511b3a Correct script for multiple get||6 months ago|
|scripts||6 months ago|
|static||6 months ago|
|templates||6 months ago|
|.gitignore||6 months ago|
|README.md||6 months ago|
|app.py||6 months ago|
|db.py||6 months ago|
|fs.py||6 months ago|
|requirements.txt||6 months ago|
|settings.example.cfg||6 months ago|
|settings.example.py||6 months ago|
Simple file server (web-based) to be used easily with curl. Written in python with framework flask. By default it used a simple SQLite database, but this can be adapted to your needs by editing config files.
Scripts to use with bash and curl are available in the scripts folder. You can set your default server, username and password in the header of the script.
This repository is licensed under GPL v3.
python3 -m venv venv)
pip install -r requirements.txt)
settings.pyand adjust parameters
For deployment, see Flask documentation.
Configuration of uploading server and limitation of file size, as well as listening url for web server is configured in
settings.py. Configuration of database is done in
settings.cfg (use of SQLAlchemy, see corresponding documentation for advanced parameterizations).
fs.pyis the core file
db.pydefines the database structure
templatesfolder contains all web views to be rendered with Jinja2
staticfolder contains scripts, css and images
If at running time, there is no user in database, a first user is created with admin
rights. The login is
admin and password is
admin. You have to change it before
deployment, of course !
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/
Copyright (C) 2020 L. Viallon-Galinier