3b69ce7ae1a19de629744bd4bbd3789bbb721e24
MINI-FLEES
A mini file sharing website.
configuration
Configure service with .env:
EXPOSE=0.0.0.0:8136 # IP/Port to bind
UUID=1000 # files will be written as user
UGID=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 datadocker-compose up --build
Description
Languages
Python
50.7%
Shell
45.3%
HTML
2.6%
Dockerfile
1.4%