Skip to content

ran-sama/flask-server-experiments

Repository files navigation

flask-server-experiments

Install python-flask before using any of these:

sudo apt install python-flask python3-flask

Current projects:

  1. http_gallery --- Simple gallery for webm and mp4 videos.

  2. tls12_gallery --- Gallery w/ TLS1.2 encryption.

  3. tls12_gallery_auth --- Gallery w/ TLS1.2 encryption, custom working directory and password.

  4. tls12_gallery_accounts --- Gallery w/ TLS1.2 encryption, custom working directory, accounts + passwords and logging.

Add a user:

$ printf "USERNAME:$(echo -n 'PASSWORD' | sha1sum | head -c 40)\n" >> access.txt
  1. tls12_flask_DL_only_server --- A general purpose server with TLS1.2 and no indexing.

  2. tls12_flask_upload_server --- A file upload server with indexing:

alt text

Add a cleanup routine on files older than 24 hours:

@hourly find /media/kingdian/up/* -mtime 1 -type f -not -name 'index.html' -delete

What does the gallery look like?

alt text

License

Licensed under the WTFPL license.

About

Various servers using the Flask framework of python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published