diff --git a/README.md b/README.md index e9a5799..ca16caa 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ -# FLEES +# FLEES a very small file sharing website - configure with data/shares.json - configure with data/config.json + - uid = user id for new files + - workers = parallel processes (i.e. one upload reserves a process) + - timeout = timeout for processes, single upload might take a long time! - generate shares with utils/create-share.py - proxy with nginx: ``` @@ -16,3 +19,6 @@ location /flees/ { client_max_body_size 8G; } ``` + +- configure local port in `docker-compose.yaml` + diff --git a/code/Dockerfile b/code/Dockerfile index e80733e..b5d9329 100644 --- a/code/Dockerfile +++ b/code/Dockerfile @@ -10,5 +10,6 @@ COPY static /code/static COPY templates /code/templates COPY revprox.py /code/revprox.py COPY app.py /code/app.py +COPY start_app.py /code/start_app.py WORKDIR /code -CMD gunicorn -b 0.0.0.0:80 --timeout 3600 -w 6 app:app +CMD python3 start_app.py