2023-08-20 12:01:06 +03:00
2023-08-20 12:01:06 +03:00
2023-08-20 11:26:29 +03:00
2023-08-20 10:44:16 +03:00
2023-08-20 11:26:29 +03:00

MINI-FLEES

A mini file sharing website.

configuration

Configure service with .env:

EXPOSE=0.0.0.0:8136  # IP/Port to bind
UID=1000  # files will be written as user
GID=1000  # files will be writter as group
TZ=Europe/Helsinki  # your timezone
WORKERS=4  # number of concurrent processes
FLASK_APP_SECRET_KEY=8a36bfea77d842386a2a0c7c3e044228363d  # Key that encrypts cookies
FLASK_ACCESS_TOKEN=dff789f0bbe8183d3254258b33a147d5  # Key used in request headers to allow upload etc.
FLASK_PUBLIC_URL=http://localhost:8136    # Public url
FLASK_DEFAULT_EXPIRE=2592000   # Default seconds to expire files
FLASK_DEFAULT_MAX_DL=9999  # Default maximum download times
  • proxy with nginx, match bind port, body size and timeout to your needs:
location /mfl/ {
         proxy_pass http://localhost:8136/;
         proxy_set_header Host $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Scheme $scheme;
         proxy_set_header X-Script-Name /mfl;
         client_max_body_size 8G;
         client_body_timeout 3600s;
    }

Running

  • mkdir data
  • docker-compose up --build
Description
No description provided
Readme 115 KiB
Languages
Python 50.7%
Shell 45.3%
HTML 2.6%
Dockerfile 1.4%